ansible-edda/playbooks/roles/system/zfs/tasks/include/conf.yml

19 lines
412 B
YAML

- name: "conf : configure zfs module via modprobe.d"
ansible.builtin.copy:
src: "./conf/zfs.conf"
dest: "/etc/modprobe.d/zfs.conf"
mode: 0644
register: system_zfs_conf_file
- block:
- name: "conf : update initramfs"
ansible.builtin.command:
cmd: "update-initramfs -u -k all"
- name: "conf : reboot"
ansible.builtin.reboot:
when:
system_zfs_conf_file.changed