Skip to content

Commit de29987

Browse files
authored
Merge pull request #191 from lae/fix/zfs-modprobe-options
Ensure ZFS modprobe configuration is inserted/removed correctly
2 parents 7e2cf95 + 98edc79 commit de29987

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tasks/kernel_module_cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
state: absent
66
when: >
77
(pve_zfs_options is not defined) or
8-
(pve_zfs_options is defined and not pve_zfs_options | bool) or
8+
(pve_zfs_options is defined and not pve_zfs_options | length > 0) or
99
(not pve_zfs_enabled | bool)
1010
1111
- name: Disable loading of ZFS module on init

tasks/zfs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
content: "options zfs {{ pve_zfs_options }}"
1818
dest: /etc/modprobe.d/zfs.conf
1919
mode: 0644
20-
when: "pve_zfs_options is defined and pve_zfs_options | bool"
20+
when: "pve_zfs_options is defined and pve_zfs_options | length > 0"
2121

2222
- name: Configure email address for ZFS event daemon notifications
2323
lineinfile:

0 commit comments

Comments
 (0)