From 947b725490bce89c53eb2aee1d6795181d54f047 Mon Sep 17 00:00:00 2001 From: Aleksandr Malyavin Date: Tue, 3 Sep 2024 20:09:42 +0300 Subject: [PATCH] ff --- roles/configure/tasks/main.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/roles/configure/tasks/main.yaml b/roles/configure/tasks/main.yaml index 236d086..8a57fbb 100644 --- a/roles/configure/tasks/main.yaml +++ b/roles/configure/tasks/main.yaml @@ -80,10 +80,12 @@ set_fact: nmcli_failed: "{{ nmcli_result.rc != 0 }}" +# - 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 ssid {{ wifi_ssid }} mode ap ip4 {{ wifi_int_ip }} +# when: nmcli_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 ssid {{ wifi_ssid }} mode ap ip4 {{ wifi_int_ip }} + command: /usr/bin/nmcli c add autoconnect yes save yes con-name {{ wifi_ssid }} ifname {{ wifi_int.stdout }} type wifi ssid {{ wifi_ssid }} mode ap when: nmcli_failed - - name: Run nmcli to add a connection LTE command: /usr/bin/nmcli c add autoconnect yes save yes con-name {{ LTE_con_name }} ifname cdc-wdm0 type gsm apn "internet" tags: br