2024/automation/ansible/roles/common/handlers/main.yml

15 lines
332 B
YAML

---
- name: Restart networking
ansible.builtin.service:
name: networking
state: restarted
- name: Update initramfs
ansible.builtin.command: "update-initramfs -u"
changed_when: true
# register: restart_required
- name: Trigger udev add
ansible.builtin.command: "udevadm trigger --action=add"
changed_when: true