- name: Set keylocation for zfs command: zfs set keylocation=file:///root/zfskey zwembad/pandorica - name: Create service for loading key copy: src: ../files/load-zfs-key.service dest: /etc/systemd/system/load-zfs-key.service notify: reload systemd - name: Enable and start service for key loading systemd: name: load-zfs-key.service enabled: yes state: started