feat : Add loop and condition to process en_interfaces
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s

This commit introduces a new loop and conditional logic to handle the processing of `en_interfaces`, enhancing the functionality of the system by allowing more comprehensive interface management.
This commit is contained in:
2025-12-26 12:11:18 +01:00
parent 1647839c8c
commit 8e1d095ead

View File

@@ -82,6 +82,9 @@
| map('extract', hostvars[inventory_hostname]['ansible_' ~ item] | default({}), 'macaddress')
| list
}}
loop: "{{ en_interfaces }}"
when: en_interfaces | length > 0
- name: Report WOL configuration
ansible.builtin.debug: