diff --git a/roles/configure/tasks/main.yaml b/roles/configure/tasks/main.yaml index 4669134..1648fd4 100644 --- a/roles/configure/tasks/main.yaml +++ b/roles/configure/tasks/main.yaml @@ -153,17 +153,27 @@ # tags: br - 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 }} - when: nmcli_failed - -- 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 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 }} \ 802-11-wireless.band a \ 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 + +# - name: Run nmcli to add WPA-PSK security to the wifi connection +# command: /usr/bin/nmcli c mod {{ wifi_ssid }} \ +# 802-11-wireless.band a \ +# wifi.mode ap \ +# wifi-sec.proto rsn \ +# wifi-sec.pairwise ccmp \ +# wifi-sec.psk {{ wifi_psk }} \ +# wifi-sec.key-mgmt wpa-psk # - name: Run nmcli to add WPA-PSK security to the wifi connection # command: /usr/bin/nmcli c mod {{ wifi_ssid }} \ # 802-11-wireless.band bg \