From fb14e6701bbe72b21200f181185e2b6d72db5684 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 24 Dec 2025 10:40:31 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Add=20WOL=20status=20displa?= =?UTF-8?q?y=20per=20interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This feature introduces a new section in the build process that includes displaying Wake-On-LAN (WOL) status for each network interface. This allows users to easily monitor and manage WOL capabilities on their devices. --- tasks/main.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index e5e8dc5..6f9996e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -44,6 +44,22 @@ msg: > {{ wol_capabilities_check.results | map(attribute='stdout_lines') | list }} +- name: Build WOL status per interface + ansible.builtin.set_fact: + wol_status: >- + {{ + wol_status | default({}) | + combine({ + item.item: + (item.stdout | regex_search('Wake-on:\\s*(\\S+)', '\\1') | default('Not supported')) + }) + }} + loop: "{{ wol_check.results }}" + +- name: Display WOL support status + ansible.builtin.debug: + var: wol_status + # # ============================================================ # # Map bridges to physical NICs using Ansible facts # # ============================================================