summaryrefslogtreecommitdiffstats
path: root/roles/network/templates/wifi-connection.nmconnection.j2
blob: b5280a30a94eba002b787943de24e8346843881f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
[connection]
id={{ network_wifi_ssid }}
uuid={{ network_wifi_ssid | to_uuid }}
type=wifi
autoconnect=true

[wifi]
mode=infrastructure
ssid={{ network_wifi_ssid }}

[wifi-security]
auth-alg=open
key-mgmt=wpa-psk
psk={{ network_wifi_pass }}

[ipv4]
{% if network_ipv4_address is defined %}
method=manual
addresses={{ network_ipv4_address }}
gateway={{ network_ipv4_gateway }}
{% if network_ipv4_dns is defined %}
dns={{ network_ipv4_dns }}
{% endif %}
{% else %}
method=auto
{% endif %}

[ipv6]
method=disabled

[proxy]