From 907592b88bb4e9cf61ed1e5fc9cae9e66df41cdc Mon Sep 17 00:00:00 2001 From: Jose Date: Sat, 24 Jan 2026 12:29:17 +0100 Subject: [PATCH] =?UTF-8?q?refactor=20=E2=99=BB=EF=B8=8F:=20Refactor=20int?= =?UTF-8?q?erface=20filter=20to=20include=20'nic'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updated the interface filter to include the 'nic' option, enhancing the filtering capabilities. --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 2c780b1..23d1472 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -26,12 +26,12 @@ # ansible.builtin.set_fact: # en_interfaces: "{{ ansible_facts.interfaces | select('match', '^eth|^ens|^enp') | unique | list }}" -- name: Get interfaces starting with "en or "eth" +- name: Get interfaces starting with "en, "eth" or "nic" ansible.builtin.set_fact: en_interfaces: >- {{ ansible_facts.interfaces - | select('match', '^(eth|en)') + | select('match', '^(eth|en|nic)') | list }}