refactor ♻️: Refactor debug message handling
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 11s
All checks were successful
ansible-lint / Ansible Lint (push) Successful in 11s
Updated the debug message logic to support multiple interfaces, improving flexibility and maintainability.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user