From 8740a2f643a3491a76da56fc9f685e663eb5ba1e Mon Sep 17 00:00:00 2001 From: jaydee Date: Mon, 18 Sep 2023 17:10:34 +0200 Subject: [PATCH] upt playbook --- playbooks/wol_enable.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/playbooks/wol_enable.yml b/playbooks/wol_enable.yml index b4c5dc6..0b95edf 100644 --- a/playbooks/wol_enable.yml +++ b/playbooks/wol_enable.yml @@ -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