refactor(OMV): Install OMV through OMV-Extra script
This commit is contained in:
parent
ff5e321b1a
commit
cded5d886c
@ -2,6 +2,10 @@
|
||||
|
||||
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
|
||||
### Setup user configuration
|
||||
- Create provisioning user without password and sudo
|
||||
|
@ -4,29 +4,16 @@
|
||||
name: gnupg
|
||||
state: present
|
||||
|
||||
- name: Install openmediavault keyring
|
||||
ansible.builtin.apt_key:
|
||||
url: https://packages.openmediavault.org/public/archive.key
|
||||
state: present
|
||||
- name: Download OMV-extras
|
||||
ansible.builtin.get_url:
|
||||
url: https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install
|
||||
dest: /tmp/omv-extras.install
|
||||
mode: u+rwx
|
||||
|
||||
- name: Add openmediavault package repository
|
||||
ansible.builtin.apt_repository:
|
||||
repo: deb https://packages.openmediavault.org/public shaitan main
|
||||
state: present
|
||||
filename: openmediavault
|
||||
- name: Install OMV-extras
|
||||
ansible.builtin.shell: /tmp/omv-extras.install -n >> /tmp/omv-extras.log
|
||||
|
||||
- name: Install openmediavault
|
||||
ansible.builtin.apt:
|
||||
pkg:
|
||||
- openmediavault-keyring
|
||||
- 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
|
||||
# TODO
|
||||
# Run updates
|
||||
# Reboot
|
||||
# Install MergerFS and ZFS plugin
|
||||
|
Loading…
Reference in New Issue
Block a user