diff --git a/templates/wireguard_client.conf b/templates/wireguard_client.conf index aee0d0b..3df03c2 100644 --- a/templates/wireguard_client.conf +++ b/templates/wireguard_client.conf @@ -1,5 +1,5 @@ [Interface] -Address = {% for item in wireguard_peers %}{% if item['name'] == inventory_hostname %}}{{ item['AllowedIPs'] }} +Address = {% for item in wireguard_peers %}{% if item['name'] == inventory_hostname %}{{ item['AllowedIPs'] }} {% endif %}{% endfor %} PrivateKey = {{ private_key }} ListenPort = {{ listenport }}