upt playbook

This commit is contained in:
jaydee 2023-09-18 17:18:39 +02:00
parent 8a98312799
commit f98e1adc73

View File

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