From f2fc5a193743e2a66f748c8baefee949a747ea7f Mon Sep 17 00:00:00 2001
From: Trygve Laugstøl <trygvis@inamo.no>
Date: Mon, 11 Jan 2021 15:26:06 +0100
Subject: Figured out a way to not need WgNetworkAllocation.

---
 j2/wireguard/ansible-host.j2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'j2/wireguard')

diff --git a/j2/wireguard/ansible-host.j2 b/j2/wireguard/ansible-host.j2
index 72273ef..9d684ef 100644
--- a/j2/wireguard/ansible-host.j2
+++ b/j2/wireguard/ansible-host.j2
@@ -1,6 +1,6 @@
 # Generated
-link_address: {{ link }}
-network_cidr: {{ network }}
+link_address: {{ host.ip }}
+network_cidr: {{ host.networkCidr }}
 wireguard_peers:
   {{ host.name }}:
 {%- for peer in peers %}
-- 
cgit v1.2.3