2022-12-18 23:43:40 +01:00
|
|
|
---
|
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
|