more fixs for packages
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user