diff --git a/templates/wireguard_client.conf b/templates/wireguard_client.conf index 1d4cb58..3d22dc4 100644 --- a/templates/wireguard_client.conf +++ b/templates/wireguard_client.conf @@ -1,5 +1,6 @@ [Interface] -Address = {% for item in wireguard_peers %}{% if item['name'] == inventory_hostname %}{{ item['AllowedIPs'] }}{% endif %}{% endfor %} +Address = {% for item in wireguard_peers %}{% if item['name'] == inventory_hostname %}{{ item['AllowedIPs'] }} +{% endif %}{% endfor %} PrivateKey = {{ private_key }} ListenPort = {{ listenport }} DNS = {% if vpn_dns is defined %}{{ vpn_dns }}{% else %}{{ server_address }}{% endif %}