upt playbook

This commit is contained in:
jaydee 2023-09-18 17:10:34 +02:00
parent 0d5cd9fe2b
commit 8740a2f643

View File

@ -2,6 +2,9 @@
name: Enable WOL
become: true
tasks:
- name: Display all interfaces name
debug:
var: ansible_facts.interfaces
- name: Creating config
become: yes
ansible.builtin.copy:
@ -13,7 +16,7 @@
[Service]
Type=oneshot
ExecStart = /usr/sbin/ethtool --change enp3s0 wol g
ExecStart = /usr/sbin/ethtool --change enp2s0 wol g
[Install]
WantedBy=basic.target