ansible-edda/plays/roles/system_zfs/tasks/include/conf.yml

19 lines
398 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: zfs_conf_file
- block:
- name: "conf : update initramfs"
ansible.builtin.command:
cmd: "update-initramfs -u -k all"
- name: "conf : reboot"
ansible.builtin.reboot:
when:
zfs_conf_file.changed