add new packages

- cockpit
- firewalld
- nfs client and server
- restic
- samba client and server
- targetcli
This commit is contained in:
Matthew Stobbs
2025-03-26 21:31:13 -06:00
parent 7aa1c3c12e
commit 9dc78f3b89
24 changed files with 292 additions and 43 deletions

View File

@@ -12,50 +12,10 @@
when:
- ansible_system == 'Linux'
block:
- name: RedHat based configuration
when:
- ansible_os_family == 'RedHat'
block:
- name: Add openzfs gpg_key
become: "{{ sys_pkg_become }}"
ansible.builtin.rpm_key:
key: "{{ zfs.gpg_key }}"
fingerprint: "{{ zfs.gpg_fp }}"
state: present
- name: Enable openzfs repository
become: "{{ sys_pkg_become }}"
ansible.builtin.dnf:
name: "{{ zfs.repo_pkg }}"
disable_gpg_check: "{{ zfs.skip_gpg_check }}"
state: present
- name: Debian configuration
when:
- ansible_os_family == 'Debian'
block:
- name: Enable openzfs repository
become: "{{ sys_pkg_become }}"
ansible.builtin.apt_repository:
repo: |
deb http://deb.debian.org/debian {{ zfs.release }}-backports main contrib
deb-src http://deb.debian.org/debian {{ zfs.release }}-backports main contrib
filename: "{{ zfs.release }}-backports"
state: present
update_cache: false
- name: Pin zfs package to backports
become: "{{ sys_pkg_become }}"
ansible.builtin.copy:
dest: /etc/apt/preferences.d/90_zfs
state: file
mode: '0644'
content: |
Package: src:zfs-linux
Pin: release n={{ zfs.release }}-backports
Pin-Priority: 990
- name: Append zfs to pkg_sys
notify:
- Depend zfs repo
changed_when: true
ansible.builtin.set_fact:
pkg_sys: "{{ pkg_sys + zfs.deps + zfs.pkgs }}"