refactor ♻️: Refactor task logic for detecting and validating physical NICs enslaved to a bridge

This commit refactors the task logic to include detection and validation of physical NICs enslaved to a bridge, selects the final WoL interface, and updates debug and failure messages accordingly. It also adds variables for detected bridge and PHY in `defaults/main.yml`.
This commit is contained in:
2025-12-21 18:23:12 +01:00
parent 000c0749a3
commit ae7ed6a894
2 changed files with 39 additions and 29 deletions

View File

@@ -1,5 +1,8 @@
# defaults/main.yml
# Network interface to enable Wake-on-LAN on
wol_interface: ""
wol_interface: "" # user override (physical NIC)
wol_detected_bridge: ""
wol_detected_phy: ""
# WOL mode:
# g = magic packet (most common)