From c110f9a103c2f676917e3fe5e33f4eaedfed070c Mon Sep 17 00:00:00 2001 From: binary Date: Fri, 20 Nov 2020 19:20:55 +0100 Subject: Refactor wireguard role with new host declaration. --- roles/wireguard/templates/host.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/wireguard/templates/host.conf.j2') diff --git a/roles/wireguard/templates/host.conf.j2 b/roles/wireguard/templates/host.conf.j2 index 2a5acc5..4c693eb 100644 --- a/roles/wireguard/templates/host.conf.j2 +++ b/roles/wireguard/templates/host.conf.j2 @@ -10,6 +10,6 @@ PrivateKey = {{ host_keys[0] }} [Peer] PublicKey = {{ dcontroller_keys[1] }} -Endpoint = {{ hostvars[_i.dcontroller].ip.out }}:53 +Endpoint = {{ hostvars[global.dcontroller].ip.out }}:53 AllowedIPs = 0.0.0.0/0, ::/0 PersistentKeepalive = 25 -- cgit v1.2.3