- 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