summaryrefslogtreecommitdiff
path: root/roles/zfs/base/tasks/main.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/zfs/base/tasks/main.yml')
-rw-r--r--roles/zfs/base/tasks/main.yml19
1 files changed, 2 insertions, 17 deletions
diff --git a/roles/zfs/base/tasks/main.yml b/roles/zfs/base/tasks/main.yml
index 0a968235..e6f2347b 100644
--- a/roles/zfs/base/tasks/main.yml
+++ b/roles/zfs/base/tasks/main.yml
@@ -7,23 +7,8 @@
options zfs zfs_arc_max={{ zfs_arc_size.max }}
dest: /etc/modprobe.d/zfs.conf
-## TODO: @debian: make sure contrib repo is added
-
-- name: install zfs packages
- apt:
- name: zfs-dkms
- state: present
-
-- name: check if module is available for the currently running kernel
- command: modprobe --dry-run zfs
- check_mode: no
- register: zfs_module_available
- failed_when: false
- changed_when: false
-
-- name: rebuild zfs module
- when: zfs_module_available.rc != 0
- command: dpkg-reconfigure zfs-dkms
+- name: install zfs modules
+ include_tasks: "{{ ansible_distribution }}.yml"
- name: load zfs kernel module
modprobe: