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

18 lines
383 B
YAML
Raw Normal View History

2022-10-30 19:00:18 +01:00
- 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