From 8494d425eebb714bc152a9487d90f5b32bcca96e Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Thu, 2 Jul 2026 15:43:37 +0200 Subject: Add role to install ethtool (Wake-on-LAN) --- roles/ethtool/templates/wol.service.j2 | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 roles/ethtool/templates/wol.service.j2 (limited to 'roles/ethtool/templates') 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 -- cgit v1.2.3