summaryrefslogtreecommitdiffstats
path: root/roles/ethtool/templates/wol.service.j2
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-02 15:43:37 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-02 15:43:37 +0200
commit8494d425eebb714bc152a9487d90f5b32bcca96e (patch)
treea28fc68fb6bd46503e3fa5d59270978a03192bb7 /roles/ethtool/templates/wol.service.j2
parent66720caa5a108c69e0f561b0b3b0d200733dae15 (diff)
Add role to install ethtool (Wake-on-LAN)
Diffstat (limited to 'roles/ethtool/templates/wol.service.j2')
-rw-r--r--roles/ethtool/templates/wol.service.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/ethtool/templates/wol.service.j2 b/roles/ethtool/templates/wol.service.j2
new file mode 100644
index 00000000..0d11f2af
--- /dev/null
+++ b/roles/ethtool/templates/wol.service.j2
@@ -0,0 +1,11 @@
+[Unit]
+Description=Enable Wake-on-LAN on {{ ethtool_wol_interface }}
+After=network.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/sbin/ethtool -s {{ ethtool_wol_interface }} wol g
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target