diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-04-26 04:32:59 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-04-26 04:33:18 +0200 |
commit | 112780881efa6dc649d7844695e78c0af15729ca (patch) | |
tree | 69722a75659873bc90c2b8276d40cd2b89b31e05 /roles/zfs/base/tasks/Debian.yml | |
parent | debian/installer: add support for ubuntu focal (diff) |
zfs: don't install dkms on unbuntu
Diffstat (limited to 'roles/zfs/base/tasks/Debian.yml')
-rw-r--r-- | roles/zfs/base/tasks/Debian.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/roles/zfs/base/tasks/Debian.yml b/roles/zfs/base/tasks/Debian.yml new file mode 100644 index 00000000..450d9300 --- /dev/null +++ b/roles/zfs/base/tasks/Debian.yml @@ -0,0 +1,18 @@ +--- +## TODO: make sure contrib repo is enabled + +- name: install zfs-dkms + 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 |