rpi-base/templates/wpa_supplicant.conf.j2
changeset 3 0dc5400538ef
parent 2 2556522a2a45
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/rpi-base/templates/wpa_supplicant.conf.j2	Sun Feb 09 12:20:22 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 %}