diff options
Diffstat (limited to 'roles/zfs/tasks/main.yml')
-rw-r--r-- | roles/zfs/tasks/main.yml | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/roles/zfs/tasks/main.yml b/roles/zfs/tasks/main.yml index 478a25dd..5e891e40 100644 --- a/roles/zfs/tasks/main.yml +++ b/roles/zfs/tasks/main.yml @@ -3,9 +3,7 @@ - name: install zfs packages apt: - name: - - zfs-dkms - - zfsutils-linux + name: zfs-dkms state: present - name: check if module is available for the currently running kernel @@ -19,8 +17,19 @@ when: zfs_module_available.rc != 0 command: dpkg-reconfigure zfs-dkms -- name: check again if module is available for the currently running kernel - when: zfs_module_available.rc != 0 - command: modprobe --dry-run zfs - check_mode: no - changed_when: false +- name: load zfs kernel module + modprobe: + name: zfs + state: present + +- name: install zfs file system utilities + apt: + name: zfsutils-linux + state: present + +- name: get zfs/zpool state + zpool_facts: + properties: all + +- debug: + var: ansible_zfs_pools |