deploy-base/roles/zfs/tasks/zfs-release.yml

20 lines
663 B
YAML
Raw Normal View History

---
- name: install zfs-release package (EPEL 7)
yum:
name: "http://download.zfsonlinux.org/epel/zfs-release.el7_7.noarch.rpm"
state: present
when: (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_major_version == "8")
2020-06-04 02:13:26 +00:00
- name: install/upgrade zfs-release package (Fedora)
dnf:
2020-06-04 02:13:26 +00:00
name: "http://download.zfsonlinux.org/fedora/zfs-release.fc{{ansible_distribution_major_version}}.noarch.rpm"
state: present
when: (ansible_distribution in ["Fedora"] and not is_atomic)