From 9ac118731824aa5fbeefcf6977a810a331829016 Mon Sep 17 00:00:00 2001 From: Jose Date: Sun, 25 Jan 2026 11:57:09 +0100 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Reorder=20and?= =?UTF-8?q?=20repeat=20'Report=20WOL=20configuration'=20task?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This refactoring reorders the 'Report WOL configuration' task to ensure it is repeated as part of the process, improving clarity and completeness. --- tasks/main.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index c120a29..b72526d 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -108,15 +108,6 @@ loop: "{{ en_interfaces }}" when: en_interfaces | length > 0 -- name: Report WOL configuration - ansible.builtin.debug: - msg: | - Wake-on-LAN Configuration Summary: - =================================== - Physical Interfaces: {{ en_interfaces | join(', ') }} - WOL Mode: {{ wol_mode }} - MAC Addresses: {{ wol_mac_addresses | join(', ') }} - - name: Start tcpdump to capture WOL packet become: true ansible.builtin.shell: | @@ -157,3 +148,12 @@ success_msg: "✅ Wake-on-LAN magic packet received by host" fail_msg: "❌ Wake-on-LAN magic packet NOT detected" changed_when: tcpdump_status.rc == 0 + +- name: Report WOL configuration + ansible.builtin.debug: + msg: | + Wake-on-LAN Configuration Summary: + =================================== + Physical Interfaces: {{ en_interfaces | join(', ') }} + WOL Mode: {{ wol_mode }} + MAC Addresses: {{ wol_mac_addresses | join(', ') }}