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
|
- name: Display all interfaces name
|
||||||
debug:
|
debug:
|
||||||
var: ansible_facts.interfaces
|
var: ansible_facts.interfaces
|
||||||
- name: Display all interfaces name
|
- name: Get wifi adapter
|
||||||
debug: msg="{{ item }}"
|
set_fact:
|
||||||
when: "{{ item }} | map('match','enp.*')"
|
wifi_adapter: '{{ item }}'
|
||||||
with_items: "{{ ansible_interfaces }}"
|
loop: '{{ ansible_facts.interfaces }}'
|
||||||
|
when: 'item.startswith("en")'
|
||||||
|
|
||||||
- name: Creating config
|
- name: Creating config
|
||||||
become: yes
|
become: yes
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user