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:
parent
bf940a2956
commit
83b888dcf7
1
roles/linroom/files/99-wakeonlan.rules
Normal file
1
roles/linroom/files/99-wakeonlan.rules
Normal file
|
@ -0,0 +1 @@
|
||||||
|
ACTION=="add", SUBSYSTEM=="net", NAME=="e*", RUN+="/usr/sbin/ethtool -s $name wol g"
|
|
@ -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"
|
||||||
|
|
8
roles/linroom/tasks/wake-on-lan.yml
Normal file
8
roles/linroom/tasks/wake-on-lan.yml
Normal 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
|
|
@ -1 +0,0 @@
|
||||||
ACTION=="add", SUBSYSTEM=="net", NAME=="e*", RUN+="/sbin/ethtool -s $name wol g"
|
|
Loading…
Reference in a new issue