upt playbook

This commit is contained in:
jaydee 2023-09-18 17:19:59 +02:00
parent 4596619aaf
commit d39fb8201d

View File

@ -7,8 +7,8 @@
var: ansible_facts.interfaces
- name: Display all interfaces name
debug: msg="{{ item }}"
when: "{{ item }} | map('match','ens.*')"
with_items: "{{ ansible_facts.interfaces }}"
when: "{{ item }} | map('match','enp.*')"
with_items: "{{ ansible_interfaces }}"
- name: Creating config
become: yes
ansible.builtin.copy: