Ansible/node-configuration/tasks/omv.yaml

49 lines
1.2 KiB
YAML
Raw Normal View History

2022-05-25 23:24:56 +00:00
---
- name: Install gnupg
ansible.builtin.package:
name: gnupg
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
# 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
# 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
- name: Upgrade packages
ansible.builtin.apt:
update_cache: yes
name: "*"
state: latest
2022-05-25 23:24:56 +00:00
- name: Install ZFS, S3 with Minio and Filebrowser
ansible.builtin.apt:
pkg:
- openmediavault-zfs
- openmediavault-s3
- openmediavault-filebrowser
register: plugin_install
- name: Reboot to enable ZFS module and finish upgrade
ansible.builtin.reboot:
when: plugin_install.changed