From 4c20e2a7ae3c2e9cac4d3d2c8578762a891bbf08 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 24 Dec 2025 10:28:24 +0100 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Refactor=20deb?= =?UTF-8?q?ug=20message=20handling?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the debug message logic to support multiple interfaces, improving flexibility and maintainability. --- tasks/main.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 6e1b96d..9648471 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -37,14 +37,12 @@ changed_when: false failed_when: false loop: "{{ en_interfaces }}" - when: en_interfaces | length > 0 - name: Display ethtool output for detected interfaces ansible.builtin.debug: msg: > - {{ wol_capabilities_check.stdout_lines }}" - + {{ wol_capabilities_check.results | map(attribute='stdout_lines') | list }} # # ============================================================ # # Map bridges to physical NICs using Ansible facts