From 65464611250ddb2f94081bf5533db30de45b5c73 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Thu, 5 Oct 2023 10:54:18 +0300 Subject: [PATCH] fix name in template --- templates/wireguard_client.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/wireguard_client.conf b/templates/wireguard_client.conf index cf7903b..a848b79 100644 --- a/templates/wireguard_client.conf +++ b/templates/wireguard_client.conf @@ -4,9 +4,9 @@ PrivateKey = {{ private_key }} ListenPort = {{ listenport }} {% if vpn_dns is defined %}DNS = {{ vpn_dns }}{% endif %} -{% for item in groups['wireguard_clients'] %}{% if item['name'] != inventory_hostname and 'PublicKey' in item and 'AllowedIPs' in item %} +{% for item in groups['wireguard_clients'] %}{% if item['inventory_hostname'] != inventory_hostname and 'PublicKey' in item and 'AllowedIPs' in item %} -# Peer name: {{ item.name }} +# Peer name: {{ item.inventory_hostname }} [Peer] PublicKey = {{ item.PublicKey }} AllowedIPs = {{ item.AllowedIPs }}