Enable wake-on-lan.

This commit is contained in:
Andreas B. Mundt 2023-10-10 12:36:58 +02:00
parent faeeb46ddf
commit 2e05599294
2 changed files with 8 additions and 2 deletions

View file

@ -91,6 +91,12 @@
RememberLastUser=false
RememberLastSession=false
- name: Enable wake-on-lan for all ethernet connections
ansible.builtin.copy:
dest: /etc/NetworkManager/conf.d/wake-on-lan.conf
content: |
[connection]
ethernet.wake-on-lan=64
- name: Create directory to avoid suspend
ansible.builtin.file:

View file

@ -8,13 +8,13 @@
ftp_proxy="{{ proxy }}"
no_proxy="{{ no_proxy }}"
- name: set aptcache
- name: Set aptcache
ansible.builtin.copy:
dest: /etc/apt/apt.conf
content: >
{{ apt_conf }}
- name: set ntp Server
- name: Set NTP server
ansible.builtin.lineinfile:
path: /etc/systemd/timesyncd.conf
insertafter: '^#NTP='