18 lines
500 B
YAML
18 lines
500 B
YAML
- name: Load hpool keys service file
|
|
copy:
|
|
src: ./filesystem/{{ ansible_hostname }}/etc/systemd/system/zfs-load-key-hpool.service
|
|
dest: /etc/systemd/system/zfs-load-key-hpool.service
|
|
mode: 0644
|
|
register: systemd_zfs_load_key_hpool_service_file
|
|
|
|
- name: SystemD daemon reload
|
|
systemd:
|
|
daemon_reload: true
|
|
when:
|
|
systemd_zfs_load_key_hpool_service_file is changed
|
|
|
|
- name: Ensure hpool keys are loaded at boot
|
|
systemd:
|
|
name: zfs-load-key-hpool.service
|
|
enabled: yes
|