From a0db41cb816c7e453ef03583bc249dbdf9903af7 Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 25 Jan 2026 07:18:50 +0100 Subject: [PATCH] =?UTF-8?q?fix=20=F0=9F=90=9B:=20Fix=20issue=20with=20mult?= =?UTF-8?q?iple=20interfaces=20and=20MAC=20addresses?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fix targets the first element in the list to resolve issues related to multiple interfaces and MAC addresses. --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index babac58..6271774 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -118,14 +118,14 @@ - name: Start tcpdump to capture WOL packet ansible.builtin.shell: | - timeout 10 tcpdump -i {{ en_interfaces }} -nn -c 1 udp port {{ wol_port }} + timeout 10 tcpdump -i {{ en_interfaces[0] }} -nn -c 1 udp port {{ wol_port }} register: tcpdump_result async: 12 poll: 0 - name: Send Wake-on-LAN packet from localhost ansible.builtin.wakeonlan: - mac: "{{ wol_mac_addresses }}" + mac: "{{ wol_mac_addresses[0] }}" port: "{{ wol_port }}" broadcast: 255.255.255.255 delegate_to: localhost