ZFS: handle EPEL/Fedora versions better
This commit is contained in:
parent
6dd2e97b87
commit
a81634c55e
1 changed files with 12 additions and 3 deletions
|
@ -1,5 +1,8 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
|
# TODO: Split tasks into distribution appropriate files
|
||||||
|
# avoid running/skipping tasks entirely by not including them
|
||||||
|
|
||||||
# temporarily added to test zfs role by itself
|
# temporarily added to test zfs role by itself
|
||||||
#- name: check if atomic
|
#- name: check if atomic
|
||||||
# stat:
|
# stat:
|
||||||
|
@ -11,11 +14,17 @@
|
||||||
# is_atomic: "{{ ostree.stat.exists }}"
|
# is_atomic: "{{ ostree.stat.exists }}"
|
||||||
# end temp additions
|
# end temp additions
|
||||||
|
|
||||||
- name: install zfs-release package (RHEL/CentOS)
|
- name: install zfs-release package (EPEL 7)
|
||||||
yum:
|
yum:
|
||||||
name: "http://download.zfsonlinux.org/epel/zfs-release.el8_0.noarch.rpm"
|
name: "http://download.zfsonlinux.org/epel/zfs-release.el7_7.noarch.rpm"
|
||||||
state: present
|
state: present
|
||||||
when: ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux" ]
|
when: (ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux" ]) and (ansible_distribution_major_version == "7")
|
||||||
|
|
||||||
|
- name: install zfs-release package (EPEL 8)
|
||||||
|
yum:
|
||||||
|
name: "http://download.zfsonlinux.org/epel/zfs-release.el8_1.noarch.rpm"
|
||||||
|
state: present
|
||||||
|
when: (ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux" ]) and (ansible_distribution_major_version == "8")
|
||||||
|
|
||||||
- name: install zfs-release package (Fedora)
|
- name: install zfs-release package (Fedora)
|
||||||
dnf:
|
dnf:
|
||||||
|
|
Loading…
Reference in a new issue