--- - 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") - name: install zfs-release package (Fedora) dnf: name: "http://download.zfsonlinux.org/fedora/zfs-release.fc31.noarch.rpm" state: present when: (ansible_distribution in ["Fedora"] and not is_atomic)