ff
This commit is contained in:
@@ -35,17 +35,6 @@
|
|||||||
state: stopped
|
state: stopped
|
||||||
enabled: false
|
enabled: false
|
||||||
|
|
||||||
- name: Configure dnsmasq
|
|
||||||
template:
|
|
||||||
src: dnsmasq.conf.j2
|
|
||||||
dest: /etc/dnsmasq.conf
|
|
||||||
|
|
||||||
- name: Configure NetworkManager
|
|
||||||
template:
|
|
||||||
src: NetworkManager.conf.j2
|
|
||||||
dest: /etc/NetworkManager/NetworkManager.conf
|
|
||||||
notify: Reload NetworkManager
|
|
||||||
|
|
||||||
- name: Get physical interfaces names WIFI modems
|
- name: Get physical interfaces names WIFI modems
|
||||||
command: find /sys/class/net -type l -lname '*wlp*' -printf '%f\n'
|
command: find /sys/class/net -type l -lname '*wlp*' -printf '%f\n'
|
||||||
register: wifi_int
|
register: wifi_int
|
||||||
@@ -58,6 +47,16 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
check_mode: false
|
check_mode: false
|
||||||
|
|
||||||
|
- name: Configure dnsmasq
|
||||||
|
template:
|
||||||
|
src: dnsmasq.conf.j2
|
||||||
|
dest: /etc/dnsmasq.conf
|
||||||
|
- name: Configure NetworkManager
|
||||||
|
template:
|
||||||
|
src: NetworkManager.conf.j2
|
||||||
|
dest: /etc/NetworkManager/NetworkManager.conf
|
||||||
|
notify: Reload NetworkManager
|
||||||
|
|
||||||
- name: Run nmcli to check if wifi access point connection has already been added
|
- name: Run nmcli to check if wifi access point connection has already been added
|
||||||
shell: /usr/bin/nmcli c | grep {{ wifi_ssid }}
|
shell: /usr/bin/nmcli c | grep {{ wifi_ssid }}
|
||||||
register: nmcli_result
|
register: nmcli_result
|
||||||
|
|||||||
Reference in New Issue
Block a user