ZFS: optimize, install pkgs only when required
This commit is contained in:
parent
8a543c35aa
commit
1f4154a5a0
2 changed files with 7 additions and 6 deletions
6
roles/zfs/defaults/main.yml
Normal file
6
roles/zfs/defaults/main.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
ZFS_PKGS:
|
||||
- kernel-devel
|
||||
- "@Development tools"
|
||||
- dkms
|
||||
- zfs
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue