feat: enable and start ZFS systemd services in configuration
Some checks failed
Nix Format Check / check-format (push) Failing after 36s
Some checks failed
Nix Format Check / check-format (push) Failing after 36s
This commit is contained in:
parent
e090a1e3c9
commit
ae1241c10e
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user