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

18 lines
383 B
YAML

- name: Configure ZFS module via modprobe.d
copy:
src: ./filesystem/{{ ansible_hostname }}/etc/modprobe.d/zfs.conf
dest: /etc/modprobe.d/zfs.conf
mode: 0644
register: systemd_zfs_scrub_service_file
- block:
- name: Update initramfs
shell: update-initramfs -u -k all
- name: Reboot
reboot:
when:
systemd_zfs_scrub_service_file is changed