Some checks failed
ansible-lint / Ansible Lint (push) Failing after 10s
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.
21 lines
436 B
YAML
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
|
|
|