Skip to content

Commit

Permalink
ansible/incus: Install zfs-dkms on Debian
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Graber <[email protected]>
  • Loading branch information
stgraber committed Jan 20, 2025
1 parent ccb3ab0 commit 26fe6b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ansible/books/incus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
gather_subset:
- "default_ipv4"
- "default_ipv6"
- "distribution_release"
vars:
task_init: "{{ incus_init | default('{}') }}"
task_ip_address: "{{ incus_ip_address | default(ansible_default_ipv6['address'] | default(ansible_default_ipv4['address'])) }}"
Expand Down Expand Up @@ -103,6 +104,14 @@
state: present
when: "task_roles | length > 0 and 'lvm' in task_init['storage'] | dict2items | json_query('[].value.driver')"

- name: Install ZFS dependencies
apt:
name:
- zfs-dkms
install_recommends: no
state: present
when: "task_roles | length > 0 and 'zfs' in task_init['storage'] | dict2items | json_query('[].value.driver') and ansible_distribution == 'Debian'"

- name: Install ZFS tools
apt:
name:
Expand Down

0 comments on commit 26fe6b6

Please sign in to comment.