base/templates/wpa_supplicant.conf.j2
changeset 2 2556522a2a45
parent 0 df042396074e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/base/templates/wpa_supplicant.conf.j2	Sun Feb 09 12:05:37 2020 -0600
@@ -0,0 +1,14 @@
+# {{ansible_managed}}
+
+country=US
+ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
+update_config=1
+{% for network in wpa_networks %}
+
+network={
+    ssid="{{network.ssid}}"
+    psk="{{network.psk}}"
+    disabled={% if rpi_base_enable_wifi %}0{% else %}1{% endif %}
+
+}
+{% endfor %}