mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-24 04:49:26 +00:00
19 lines
450 B
YAML
19 lines
450 B
YAML
|
- 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'
|