mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2025-01-23 20:39:26 +00:00
upt playbook
This commit is contained in:
parent
d39fb8201d
commit
9672cddfc2
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user