Files
ansible_proxmox_WOL/templates/wol.service.j2

12 lines
237 B
Plaintext
Raw Normal View History

[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