more fixs for packages

This commit is contained in:
Matthew Stobbs
2025-02-20 15:03:54 -07:00
parent c0400949c3
commit 41b1acc067
34 changed files with 181 additions and 201 deletions

View File

@@ -1,17 +1,9 @@
---
- name: Set zfs facts for RedHat based distros
- name: Set distro name
when:
- ansible_os_family == 'RedHat'
block:
- name: Set distro name
ansible.builtin.set_fact:
rhname: "{%if ansible_distribution == 'Fedora' %}fedora{% else %}epel{% endif %}"
- name: Get rpm_dist for RedHat
changed_when: false
register: rpm_dist
ansible.builtin.command: # is there a better way to get this?
cmd: rpm --eval "%{dist}"
ansible.builtin.set_fact:
rhname: "{%if ansible_distribution == 'Fedora' %}fedora{% else %}epel{% endif %}"
- name: Set ZFS config
ansible.builtin.set_fact: