From 52b3031fb8e458f9dafa587ceefae95580b11594 Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Mon, 5 Apr 2021 00:24:23 -0500 Subject: [PATCH] zfs: add RedHat OS variation to condition --- roles/zfs/defaults/main.yml | 4 ++++ roles/zfs/tasks/main.yml | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/roles/zfs/defaults/main.yml b/roles/zfs/defaults/main.yml index 1be7c4d..3c0c98c 100644 --- a/roles/zfs/defaults/main.yml +++ b/roles/zfs/defaults/main.yml @@ -6,6 +6,10 @@ EL_ZFS_PKGS: - kernel-devel - "@Development tools" - dkms + - libuuid-devel + - libblkid-devel + - libtirpc-devel + - openssl-devel - zfs UBUNTU_ZFS_PKGS: - zfsutils-linux diff --git a/roles/zfs/tasks/main.yml b/roles/zfs/tasks/main.yml index e975e34..0fb926c 100644 --- a/roles/zfs/tasks/main.yml +++ b/roles/zfs/tasks/main.yml @@ -2,7 +2,7 @@ - name: include zfs-release tasks (CentOS/RHEL/Fedora) include_tasks: zfs-release.yml - when: ('zfs-release' not in ansible_facts.packages) and (ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "Fedora" ]) + when: ('zfs-release' not in ansible_facts.packages) and (ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "RedHat", "Fedora" ]) - name: include zfs installation tasks (Ubuntu) include_tasks: ubuntu.yml @@ -10,7 +10,7 @@ - name: include zfs installation tasks (CentOS/RHEL/Fedora) include_tasks: el.yml - when: (ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "Fedora" ] and not is_atomic) + when: (ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "RedHat", "Fedora" ] and not is_atomic) - name: load zfs module modprobe: