Files
ansible_proxmox_WOL/templates/wol.service.j2
Jose 963b0dff6a 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.
2025-12-23 20:42:03 +01:00

12 lines
237 B
Django/Jinja

[Unit]
Description=Enable Wake-on-LAN on {{ wol_final_interface }}
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/ethtool -s {{ wol_final_interface }} wol {{ wol_mode }}
Restart=always
[Install]
WantedBy=multi-user.target