update and fix multiple packages

This commit is contained in:
Matthew Stobbs
2025-01-25 16:07:24 -07:00
parent edba662878
commit 00e08c5997
27 changed files with 132 additions and 99 deletions

View File

@@ -2,6 +2,9 @@
- ansible.builtin.include_vars:
file: zfs.yml
name: _zfs
- ansible.builtin.set_fact:
pkgconfig:
zfs: "{{ _zfs | ansible.builtin.combine(pkgconfig.zfs) }}"
- name: RedHat based configuration
when: ansible_os_family == 'RedHat'
@@ -14,8 +17,8 @@
- name: add openzfs gpg_key
ansible.builtin.rpm_key:
key: "{{ _zfs.gpg_key }}"
fingerprint: "{{ _zfs.gpg_key_fingerprint }}"
key: "{{ pkgconfig.zfs.gpg_key }}"
fingerprint: "{{ pkgconfig.zfs.gpg_key_fingerprint }}"
state: present
become: true
tags:
@@ -24,7 +27,7 @@
- name: enable openzfs repository
ansible.builtin.dnf:
name: "{{ _zfs.repo_base }}{{ rhname }}/zfs-release-{{ _zfs[rhname].release }}{{ rpm_dist.stdout }}.noarch.rpm"
name: "{{ pkgconfig.zfs.repo_base }}{{ rhname }}/zfs-release-{{ pkgconfig.zfs[rhname].release }}{{ rpm_dist.stdout }}.noarch.rpm"
state: "{{ install_state }}"
become: true
tags:
@@ -33,7 +36,7 @@
- name: install zfs deps
ansible.builtin.dnf:
name: "{{ _zfs[ansible_os_family].deppkgs }}"
name: "{{ pkgconfig.zfs[ansible_os_family].deppkgs }}"
state: "{{ install_state }}"
become: true
@@ -63,12 +66,12 @@
- name: install zfs deps
become: true
ansible.builtin.apt:
name: "{{ _zfs[ansible_os_family].deppkgs }}"
name: "{{ pkgconfig.zfs.deppkgs[ansible_os_family] }}"
state: "{{ install_state }}"
- name: append to pkgs
set_fact:
syspkgs: "{{ syspkgs + _zfs[ansible_os_family].pkgs }}"
syspkgs: "{{ syspkgs + pkgconfig.zfs.pkgs[ansible_os_family] }}"
become: true
tags:
- RedHat