linroom: fix Wake-on-LAN setup

Add missing ethtool. Rename file as it is necessary on non-Intel
devices also. Ensure the udev rule is applied after 80-net-setup-link.
This commit is contained in:
Timotej Lazar 2023-05-01 18:32:44 +02:00
parent bf940a2956
commit 83b888dcf7
4 changed files with 11 additions and 5 deletions

View file

@ -0,0 +1 @@
ACTION=="add", SUBSYSTEM=="net", NAME=="e*", RUN+="/usr/sbin/ethtool -s $name wol g"

View file

@ -100,10 +100,8 @@
- name: Set time to local RTC - name: Set time to local RTC
shell: "timedatectl set-local-rtc 1 --adjust-system-clock" shell: "timedatectl set-local-rtc 1 --adjust-system-clock"
- name: Fix WoL on Intel - name: Enable Wake-on-LAN
template: import_tasks: wake-on-lan.yml
src: intel-wol.rules
dest: /etc/udev/rules.d/79-wol.rules
- name: Join AD - name: Join AD
shell: "realm join --user=ad.join@FRI1.UNI-LJ.SI --computer-ou=OU=Ucilnice FRI1.UNI-LJ.SI" shell: "realm join --user=ad.join@FRI1.UNI-LJ.SI --computer-ou=OU=Ucilnice FRI1.UNI-LJ.SI"

View file

@ -0,0 +1,8 @@
- name: Install ethtool
apt:
name: ethtool
- name: Add udev rule to enable wake-on-lan for ethernet interfaces
copy:
dest: /etc/udev/rules.d/
src: 99-wakeonlan.rules

View file

@ -1 +0,0 @@
ACTION=="add", SUBSYSTEM=="net", NAME=="e*", RUN+="/sbin/ethtool -s $name wol g"