2022-05-25 23:24:56 +00:00
|
|
|
---
|
|
|
|
- name: Install gnupg
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: gnupg
|
|
|
|
state: present
|
|
|
|
|
2023-12-05 09:02:01 +00:00
|
|
|
- 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
|
|
|
|
|
|
|
|
# B: Beta to enable installation on Debian 12
|
|
|
|
# N: Skip networking installation
|
|
|
|
# F: Skip flashmemory plugin installation
|
|
|
|
- name: Install OMV-extras
|
|
|
|
ansible.builtin.shell: /tmp/omv-extras.install -n -f >> /tmp/omv-extras.log
|
|
|
|
|
2023-12-02 16:59:36 +00:00
|
|
|
# TODO: Only enable this within Homelab configuration
|
|
|
|
- name: Add Vagrant user to ssh group
|
|
|
|
ansible.builtin.user:
|
|
|
|
name: vagrant
|
|
|
|
groups: ssh
|
|
|
|
append: yes
|
|
|
|
|
|
|
|
- name: Add Ansible user to ssh group
|
|
|
|
ansible.builtin.user:
|
|
|
|
name: "{{ ansible_user_id }}"
|
|
|
|
groups: ssh
|
|
|
|
append: yes
|
|
|
|
|
2023-12-05 09:02:01 +00:00
|
|
|
- name: Upgrade packages
|
|
|
|
ansible.builtin.apt:
|
|
|
|
update_cache: yes
|
|
|
|
name: "*"
|
|
|
|
state: latest
|
2022-05-25 23:24:56 +00:00
|
|
|
|
2023-12-05 09:02:01 +00:00
|
|
|
- name: Install ZFS, S3 with Minio and Filebrowser
|
|
|
|
ansible.builtin.apt:
|
|
|
|
pkg:
|
|
|
|
- openmediavault-zfs
|
|
|
|
- openmediavault-s3
|
|
|
|
- openmediavault-filebrowser
|
2024-01-14 00:34:08 +00:00
|
|
|
register: plugin_install
|
2023-12-05 09:02:01 +00:00
|
|
|
|
|
|
|
- name: Reboot to enable ZFS module and finish upgrade
|
|
|
|
ansible.builtin.reboot:
|
2024-01-14 00:34:08 +00:00
|
|
|
when: plugin_install.changed
|