Ansible/node-configuration/tasks/omv.yaml

33 lines
831 B
YAML
Raw Normal View History

2022-05-25 23:24:56 +00:00
---
- name: Install gnupg
ansible.builtin.package:
name: gnupg
state: present
- name: Install openmediavault keyring
ansible.builtin.apt_key:
url: https://packages.openmediavault.org/public/archive.key
state: present
- name: Add openmediavault package repository
ansible.builtin.apt_repository:
repo: deb https://packages.openmediavault.org/public shaitan main
state: present
filename: openmediavault
- 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