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

19 lines
412 B
YAML
Raw Normal View History

2022-12-04 17:06:18 +01:00
- name: "conf : configure zfs module via modprobe.d"
ansible.builtin.copy:
src: "./conf/zfs.conf"
dest: "/etc/modprobe.d/zfs.conf"
mode: 0644
2022-12-08 23:19:54 +01:00
register: system_zfs_conf_file
2022-12-04 17:06:18 +01:00
- block:
- name: "conf : update initramfs"
ansible.builtin.command:
cmd: "update-initramfs -u -k all"
- name: "conf : reboot"
ansible.builtin.reboot:
when:
2022-12-08 23:19:54 +01:00
system_zfs_conf_file.changed