mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-24 04:49:26 +00:00
upt playbook
This commit is contained in:
parent
0d5cd9fe2b
commit
8740a2f643
@ -2,6 +2,9 @@
|
|||||||
name: Enable WOL
|
name: Enable WOL
|
||||||
become: true
|
become: true
|
||||||
tasks:
|
tasks:
|
||||||
|
- name: Display all interfaces name
|
||||||
|
debug:
|
||||||
|
var: ansible_facts.interfaces
|
||||||
- name: Creating config
|
- name: Creating config
|
||||||
become: yes
|
become: yes
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
@ -13,7 +16,7 @@
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
ExecStart = /usr/sbin/ethtool --change enp3s0 wol g
|
ExecStart = /usr/sbin/ethtool --change enp2s0 wol g
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=basic.target
|
WantedBy=basic.target
|
||||||
|
Loading…
x
Reference in New Issue
Block a user