ansible-edda/playbooks/tasks/hosts/zfs-extra.yml

18 lines
500 B
YAML
Raw Normal View History

2022-10-12 22:02:11 +02:00
- 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