mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
20 lines
457 B
YAML
20 lines
457 B
YAML
- hosts: omv
|
|
name: Enable WOL
|
|
become: true
|
|
tasks:
|
|
- name: Creating config
|
|
ansible.builtin.copy:
|
|
become: true
|
|
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' |