feat ✨: Add task to filter interfaces starting with 'en'
ansible-lint / Ansible Lint (push) Failing after 10s
ansible-lint / Ansible Lint (push) Failing after 10s
This feature introduces a new task that filters and processes interfaces whose names begin with the prefix 'en'. This enhancement allows for more targeted and efficient handling of specific interface types within our application.
This commit is contained in:
@@ -22,6 +22,10 @@
|
||||
msg: >
|
||||
{{ ansible_facts.interfaces }}
|
||||
|
||||
- name: Get interfaces starting with "en"
|
||||
set_fact:
|
||||
en_interfaces: "{{ msg | select('match', '^en') | list }}"
|
||||
|
||||
# # ============================================================
|
||||
# # Normalize and validate configuration
|
||||
# # ============================================================
|
||||
|
||||
Reference in New Issue
Block a user