feat ✨: Add loop and condition to process en_interfaces
Some checks failed
ansible-lint / Ansible Lint (push) Failing after 9s
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:
@@ -82,6 +82,9 @@
|
|||||||
| map('extract', hostvars[inventory_hostname]['ansible_' ~ item] | default({}), 'macaddress')
|
| map('extract', hostvars[inventory_hostname]['ansible_' ~ item] | default({}), 'macaddress')
|
||||||
| list
|
| list
|
||||||
}}
|
}}
|
||||||
|
loop: "{{ en_interfaces }}"
|
||||||
|
when: en_interfaces | length > 0
|
||||||
|
|
||||||
|
|
||||||
- name: Report WOL configuration
|
- name: Report WOL configuration
|
||||||
ansible.builtin.debug:
|
ansible.builtin.debug:
|
||||||
|
|||||||
Reference in New Issue
Block a user