This commit is contained in:
2024-09-07 11:35:22 +03:00
parent 366066fb3a
commit d2c8b3daa1

View File

@@ -108,16 +108,12 @@
- 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 ipv4.method shared autoconnect yes save yes con-name {{ wifi_ssid }} ifname {{ wifi_int.stdout }} type wifi slave-type bridge master br0 wifi.ssid {{ wifi_ssid }} wifi.mode ap wifi-sec.proto rsn wifi-sec.pairwise ccmp wifi-sec.psk {{ wifi_psk }} wifi-sec.key-mgmt wpa-psk command: /usr/bin/nmcli c add ipv4.method shared autoconnect yes save yes con-name {{ wifi_ssid }} ifname {{ wifi_int.stdout }} type wifi slave-type bridge master br0 wifi.ssid {{ wifi_ssid }} wifi.mode ap wifi-sec.proto rsn wifi-sec.pairwise ccmp wifi-sec.psk {{ wifi_psk }} wifi-sec.key-mgmt wpa-psk
# 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
# 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 a \
# 802-11-wireless.channel 1 \ 802-11-wireless.channel 1
# 802-11-wireless-security.key-mgmt wpa-psk \
# 802-11-wireless-security.proto rsn \
# 802-11-wireless-security.group ccmp \
# 802-11-wireless-security.pairwise ccmp \
# 802-11-wireless-security.psk {{ wifi_psk }} \
# - 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 \