mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
upt playbook
This commit is contained in:
parent
4cd81a60eb
commit
e0d40e08bf
@ -90,5 +90,26 @@
|
||||
ansible.builtin.apt:
|
||||
name: element-desktop
|
||||
update_cache: yes
|
||||
|
||||
|
||||
- name: Creating a file with content
|
||||
ansible.builtin.copy:
|
||||
dest: "/etc/systemd/system/wol@.service"
|
||||
content: |
|
||||
[Unit]
|
||||
Description=Wake-on-LAN for %i
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/sbin/ethtool -s %i wol g
|
||||
Type=oneshot
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
- name: Just force systemd to reread configs (2.4 and above)
|
||||
ansible.builtin.systemd:
|
||||
daemon_reload: true
|
||||
- name: Enable wol@eno1
|
||||
ansible.builtin.systemd:
|
||||
name: wol@eno1
|
||||
state: started
|
||||
enabled: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user