Jose ae7ed6a894 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`.
2025-12-21 18:23:12 +01:00
2025-12-14 21:28:45 +01:00
2025-12-14 20:46:32 +01:00
2025-12-14 21:28:45 +01:00

ansible_proxmox_WOL

This Ansible role enables persistent Wake-on-LAN (WOL) on a Proxmox VE server.

Variables

Variable Default Description
wol_interface eno1 Network interface
wol_mode g WOL mode (magic packet)
wol_verify true Verify WOL status

Notes for Proxmox admins

Auto-detection works best when: The management IP uses the physical NIC You are not routing management via vmbr0 only

If your default route is on vmbr0, manual override is recommended

BIOS must still have: Wake on LAN enabled ErP disabled

Example Playbook

- hosts: proxmox
  become: true
  roles:
    - role: ansible_proxmox_WOL
      vars:
        wol_interface: vmbr0    # Optional, comment for autodetection
Description
No description provided
Readme 356 KiB
Languages
Jinja 100%