rpi-base/templates/wpa_supplicant.conf.j2
author Luke Hoersten <luke@hoersten.org>
Mon, 16 Nov 2020 16:43:09 -0600
changeset 144 267d58c0e186
parent 3 0dc5400538ef
permissions -rw-r--r--
Replaced with_items with loop.

# {{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 %}