From 6a873433f13dc1434760f14d602eb669da270170 Mon Sep 17 00:00:00 2001 From: Jose Date: Wed, 24 Dec 2025 09:45:10 +0100 Subject: [PATCH] =?UTF-8?q?feat=20=E2=9C=A8:=20Add=20task=20to=20filter=20?= =?UTF-8?q?interfaces=20starting=20with=20'en'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index 9901ba2..34c49c2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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 # # ============================================================