summaryrefslogtreecommitdiff
path: root/j2/wireguard
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-01-11 15:26:06 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2021-01-11 15:26:06 +0100
commitf2fc5a193743e2a66f748c8baefee949a747ea7f (patch)
tree987968bf8d3c3dbf732d4b21106909e6db4d6051 /j2/wireguard
parent26769b6059e299103e2ee5427ac71b30533c204f (diff)
downloadrules-sandbox-f2fc5a193743e2a66f748c8baefee949a747ea7f.tar.gz
rules-sandbox-f2fc5a193743e2a66f748c8baefee949a747ea7f.tar.bz2
rules-sandbox-f2fc5a193743e2a66f748c8baefee949a747ea7f.tar.xz
rules-sandbox-f2fc5a193743e2a66f748c8baefee949a747ea7f.zip
Figured out a way to not need WgNetworkAllocation.
Diffstat (limited to 'j2/wireguard')
-rw-r--r--j2/wireguard/ansible-host.j24
1 files changed, 2 insertions, 2 deletions
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 %}