feat : Add WOL status display per interface
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 11s

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.
This commit is contained in:
2025-12-24 10:40:31 +01:00
parent b7f743021f
commit fb14e6701b

View File

@@ -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
# # ============================================================