feat: enable and start ZFS systemd services in configuration
Some checks failed
Nix Format Check / check-format (push) Failing after 36s

This commit is contained in:
Menno van Leeuwen 2025-03-12 10:32:41 +01:00
parent e090a1e3c9
commit ae1241c10e
Signed by: vleeuwenmenno
SSH Key Fingerprint: SHA256:OJFmjANpakwD3F2Rsws4GLtbdz1TJ5tkQF0RZmF0TRE

View File

@ -8,6 +8,20 @@
- name: Ensure ZFS kernel module is loaded
ansible.builtin.command: modprobe zfs
become: true
args:
creates: /sys/module/zfs
- name: Enable ZFS systemd services
ansible.builtin.systemd:
name: "{{ item }}"
enabled: true
state: started
become: true
with_items:
- zfs.target
- zfs-import-cache
- zfs-mount
- zfs-import.target
- name: Ensure /mnt directory exists with proper permissions
ansible.builtin.file: