This commit is contained in:
2024-09-08 12:43:31 +03:00
parent 88810a4b3c
commit 7e758dbeb4

View File

@@ -136,7 +136,7 @@
# tags: br # tags: br
- name: Run nmcli to add a connection with the specified parameters as a wifi access point if above check has failed - name: Run nmcli to add a connection with the specified parameters as a wifi access point if above check has failed
command: /usr/bin/nmcli c add autoconnect yes save yes con-name {{ wifi_ssid }} ifname {{ wifi_int.stdout }} type wifi slave-type bridge master br0 wifi.ssid {{ wifi_ssid }} command: /usr/bin/nmcli c add autoconnect yes save yes con-name {{ wifi_ssid }} ifname {{ wifi_int.stdout }} type wifi slave-type bridge master br0 wifi.ssid {{ wifi_ssid }} ipv4.method shared
when: nmcli_failed when: nmcli_failed
- name: Run nmcli to add WPA-PSK security to the wifi connection - name: Run nmcli to add WPA-PSK security to the wifi connection
@@ -146,8 +146,7 @@
wifi-sec.proto rsn \ wifi-sec.proto rsn \
wifi-sec.pairwise ccmp \ wifi-sec.pairwise ccmp \
wifi-sec.psk {{ wifi_psk }} \ wifi-sec.psk {{ wifi_psk }} \
wifi-sec.key-mgmt wpa-psk \ wifi-sec.key-mgmt wpa-psk
ipv4.method shared
# - name: Run nmcli to add WPA-PSK security to the wifi connection # - name: Run nmcli to add WPA-PSK security to the wifi connection
# command: /usr/bin/nmcli c mod {{ wifi_ssid }} \ # command: /usr/bin/nmcli c mod {{ wifi_ssid }} \
# 802-11-wireless.band bg \ # 802-11-wireless.band bg \