refactor ♻️: Refactored Wake-on-LAN task for specific bridge interface

Renamed `wol_interface` to `wol_bridge`, updated comments, and refactored task using `bridge link show` and `ethtool`. Added udev rules for persistence and set `Restart=always` for the service.
This commit is contained in:
2025-12-23 20:42:03 +01:00
parent ebc947ce9d
commit 963b0dff6a
3 changed files with 72 additions and 119 deletions

View File

@@ -1,8 +1,6 @@
# defaults/main.yml
# Network interface to enable Wake-on-LAN on
wol_interface: "" # user override (physical NIC)
wol_detected_bridge: ""
wol_detected_phy: ""
# Bridge interface to enable Wake-on-LAN on
wol_bridge: vmbr0
# WOL mode:
# g = magic packet (most common)
@@ -12,4 +10,4 @@ wol_mode: "g"
wol_verify: true
# Report MAC address for WOL senders
wol_report_mac: true
wol_report_mac: true