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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user