k3s-ansible/roles/node/handlers/main.yml

13 lines
328 B
YAML
Raw Normal View History

2024-11-23 21:46:13 +00:00
- name: Update initramfs
listen:
- update initramfs
- update initrd
ansible.builtin.command:
cmd: >
update-initramfs -k all -u
- name: Warn user to reboot
ansible.builtin.set_fact:
user_notify: Reboot the machine to use the new name for primary interface!
when: systemd_networkd_ifname is changed