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