upt playbook

This commit is contained in:
jaydee 2023-09-18 17:18:55 +02:00
parent f98e1adc73
commit 4596619aaf

View File

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