summaryrefslogtreecommitdiff
path: root/roles/zfs/base/tasks/Debian.yml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/zfs/base/tasks/Debian.yml')
-rw-r--r--roles/zfs/base/tasks/Debian.yml25
1 files changed, 19 insertions, 6 deletions
diff --git a/roles/zfs/base/tasks/Debian.yml b/roles/zfs/base/tasks/Debian.yml
index e13c03f5..2a3d608e 100644
--- a/roles/zfs/base/tasks/Debian.yml
+++ b/roles/zfs/base/tasks/Debian.yml
@@ -10,24 +10,37 @@
- apt_repo_components is defined
- "'contrib' in apt_repo_components"
-- name: install zfs-dkms (buster)
+- name: install zfs-dkms and utilities (buster)
when: (ansible_distribution_major_version | int) == 10
block:
- name: add backports repo
include_role:
name: apt-repo/backports
- - name: install zfs-dkms from backports
+ - name: install zfs modules via dkms
apt:
name: zfs-dkms
default_release: buster-backports
state: present
-- name: install zfs-dkms (bullseye and beyond)
+ - name: install zfs file system utilities
+ apt:
+ name: zfsutils-linux
+ default_release: buster-backports
+ state: present
+
+- name: install zfs-dkms and utilities (bullseye and beyond)
when: (ansible_distribution_major_version | int) > 10
- apt:
- name: zfs-dkms
- state: present
+ block:
+ - name: install zfs modules via dkms
+ apt:
+ name: zfs-dkms
+ state: present
+
+ - name: install zfs file system utilities
+ apt:
+ name: zfsutils-linux
+ state: present
- name: check if module is available for the currently running kernel
command: modprobe --dry-run zfs