Files
ansible_proxmox_WOL/handlers/main.yml
Jose 0afc2a0461
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
feat : Add new handler to reload systemd and restart WOL.
This commit introduces a new handler that allows reloading the systemd configuration and restarting the Wake-on-LAN (WOL) service, ensuring persistent wake-up functionality.
2025-12-26 10:36:19 +01:00

21 lines
436 B
YAML

---
- name: Reload systemd
ansible.builtin.systemd:
daemon_reload: yes
- name: Reload systemd and restart WOL
ansible.builtin.systemd:
name: wol
daemon_reload: true
enabled: true
state: restarted
- name: Reload_udev_rules
ansible.builtin.command: udevadm control --reload
changed_when: false
- name: Trigger_udev_net
ansible.builtin.command: udevadm trigger --subsystem-match=net
changed_when: false