refactor(OMV): Install OMV through OMV-Extra script

This commit is contained in:
Tanguy Herbron 2023-04-11 10:22:52 +02:00
parent ff5e321b1a
commit cded5d886c
2 changed files with 15 additions and 24 deletions

View File

@ -2,6 +2,10 @@
Catalogue of Ansible playbooks and helper scripts for server management Catalogue of Ansible playbooks and helper scripts for server management
## TODO
Migrate OMV6 installation process to the OMV-Extras script and disable network configuration step
https://github.com/OpenMediaVault-Plugin-Developers/installScript#to-skip-network-setup
## Node configuration process ## Node configuration process
### Setup user configuration ### Setup user configuration
- Create provisioning user without password and sudo - Create provisioning user without password and sudo

View File

@ -4,29 +4,16 @@
name: gnupg name: gnupg
state: present state: present
- name: Install openmediavault keyring - name: Download OMV-extras
ansible.builtin.apt_key: ansible.builtin.get_url:
url: https://packages.openmediavault.org/public/archive.key url: https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install
state: present dest: /tmp/omv-extras.install
mode: u+rwx
- name: Add openmediavault package repository - name: Install OMV-extras
ansible.builtin.apt_repository: ansible.builtin.shell: /tmp/omv-extras.install -n >> /tmp/omv-extras.log
repo: deb https://packages.openmediavault.org/public shaitan main
state: present
filename: openmediavault
- name: Install openmediavault # TODO
ansible.builtin.apt: # Run updates
pkg: # Reboot
- openmediavault-keyring # Install MergerFS and ZFS plugin
- openmediavault
autoremove: yes
#allow_downgrade: yes
install_recommends: no
environment:
LANG: "C.UTF-8"
DEBIAN_FRONTEND: "noninteractive"
APT_LISTCHANGES_FRONTEND: "none"
- name: Populate openmediavault configuration
ansible.builtin.command: omv-confdbadm populate