ansible/playbooks/wol_enable.yml
2023-09-18 16:18:30 +02:00

19 lines
443 B
YAML

- hosts: omv
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'