--- - name: WiFi — dotnetwork (home) community.general.nmcli: type: wifi conn_name: dotnetwork ssid: "{{ wifi_ssid_dotnetwork }}" wifi_sec: key-mgmt: wpa-psk psk: "{{ wifi_password_dotnetwork }}" autoconnect: true state: present become: true tags: [wifi] - name: WiFi — dotmobile (phone hotspot, field troubleshooting) community.general.nmcli: type: wifi conn_name: dotmobile ssid: "{{ wifi_ssid_dotmobile }}" wifi_sec: key-mgmt: wpa-psk psk: "{{ wifi_password_dotmobile }}" autoconnect: true state: present become: true tags: [wifi] - name: WiFi — deployed-location network community.general.nmcli: type: wifi conn_name: location ssid: "{{ wifi_ssid_location }}" wifi_sec: key-mgmt: wpa-psk psk: "{{ wifi_password_location }}" autoconnect: true state: present become: true when: wifi_ssid_location is defined tags: [wifi]