Files
ansible_proxmox_WOL/templates/wol.service.j2
Jose efd44fcbc8 feat : Add support for Wake-on-LAN
Enables Wake-on-LAN by setting `wol_interface` to an empty string and enables MAC address reporting.
2025-12-14 21:28:45 +01:00

11 lines
222 B
Django/Jinja

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