ansible-collections/sbc/roles/dietpi_install/templates/dietpi-wifi.txt.j2

24 lines
1.4 KiB
Django/Jinja

{% for wifi in dietpi.wifi %}
#---------------------------------------------------------------
# Entry {{ loop.index }}
# - WiFi SSID: required, case sensitive
aWIFI_SSID[{{ loop.index }}]='{{ wifi.ssid }}'
# - WiFi key: If no key/open, leave this blank
# - In case of WPA-PSK, alternatively enter the 64-digit hexadecimal key returned by wpa_passphrase
# - Please replace single quote characters ' in your key with '\''. No other escaping is required.
aWIFI_KEY[{{ loop.index }}]='{{ wifi.key|default('') }}'
# - Key type: NONE (no key/open) | WPA-PSK | WEP | WPA-EAP (then use settings below)
aWIFI_KEYMGR[{{ loop.index }}]='{{ wifi.keymgr|default('NONE') }}'
# - WPA-EAP options: Only fill if WPA-EAP is set above
aWIFI_PROTO[{{ loop.index }}]='{{ wifi.proto|default('') }}'
aWIFI_PAIRWISE[{{ loop.index }}]='{{ wifi.pairwise|default('') }}'
aWIFI_AUTH_ALG[{{ loop.index }}]='{{ wifi.auth_alg|default('') }}'
aWIFI_EAP[{{ loop.index }}]='{{ wifi.eap|default('') }}'
aWIFI_IDENTITY[{{ loop.index }}]='{{ wifi.identity|default('') }}'
aWIFI_PASSWORD[{{ loop.index }}]='{{ wifi.password|default('') }}'
aWIFI_PHASE1[{{ loop.index }}]='{{ wifi.phase1|default('') }}'
aWIFI_PHASE2[{{ loop.index }}]='{{ wifi.phase2|default('') }}'
# - Path to the certificate file, e.g.: /boot/mycert.cer
aWIFI_CERT[{{ loop.index }}]='{{ wifi.cert|default('') }}'
{% endfor %}
#---------------------------------------------------------------