feat : Add new handler to reload systemd and restart WOL.
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.
This commit is contained in:
2025-12-26 10:36:19 +01:00
parent 55e5aa94d2
commit 0afc2a0461
2 changed files with 38 additions and 37 deletions

View File

@@ -1,4 +1,8 @@
---
- name: Reload systemd
ansible.builtin.systemd:
daemon_reload: yes
- name: Reload systemd and restart WOL
ansible.builtin.systemd:
name: wol
@@ -13,3 +17,4 @@
- name: Trigger_udev_net
ansible.builtin.command: udevadm trigger --subsystem-match=net
changed_when: false