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 }}