upt playbook

This commit is contained in:
jaydee
2023-09-18 16:16:59 +02:00
parent 69f719f5c4
commit 1c900a1c3d
2 changed files with 20 additions and 1 deletions

19
playbooks/wol_enable.yml Normal file
View File

@ -0,0 +1,19 @@
- hosts: containers
name: Enable WOL
gather_facts: false
tasks:
- name: Creating config
ansible.builtin.copy:
dest: "/etc/systemd/system/wol.service"
content: |
[Unit]
Description=Enable Wake On Lan
[Service]
Type=oneshot
ExecStart = /usr/sbin/ethtool --change enp3s0 wol g
[Install]
WantedBy=basic.target
owner: root
mode: '0744'