upt playbook

This commit is contained in:
jaydee 2023-09-18 17:28:09 +02:00
parent d39fb8201d
commit 9672cddfc2

View File

@ -5,10 +5,12 @@
- name: Display all interfaces name
debug:
var: ansible_facts.interfaces
- name: Display all interfaces name
debug: msg="{{ item }}"
when: "{{ item }} | map('match','enp.*')"
with_items: "{{ ansible_interfaces }}"
- name: Get wifi adapter
set_fact:
wifi_adapter: '{{ item }}'
loop: '{{ ansible_facts.interfaces }}'
when: 'item.startswith("en")'
- name: Creating config
become: yes
ansible.builtin.copy: