ZFS: optimize, install pkgs only when required

This commit is contained in:
Josh Lay 2020-04-17 20:33:31 -05:00
parent 8a543c35aa
commit 1f4154a5a0
2 changed files with 7 additions and 6 deletions

View file

@ -0,0 +1,6 @@
---
ZFS_PKGS:
- kernel-devel
- "@Development tools"
- dkms
- zfs

View file

@ -43,13 +43,8 @@
- name: install zfs and dkms
package:
name: "{{ item }}"
name: "{{ ZFS_PKGS | difference(ansible_facts.packages) }}"
state: present
with_items:
- kernel-devel
- "@Development tools"
- dkms
- zfs
register: zfs_installed
when: ansible_distribution in ["CentOS" , "Red Hat Enterprise Linux", "Fedora" ] and not is_atomic