diff options
author | binary <me@rgoncalves.se> | 2020-11-20 19:20:55 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2020-11-20 19:20:55 +0100 |
commit | c110f9a103c2f676917e3fe5e33f4eaedfed070c (patch) | |
tree | 072f1b019ae7d0c39a0cbd9d88257688203edddc /roles/wireguard/templates/host.conf.j2 | |
parent | b739e2af7060cd10f65d97cd0bfc0e9adb7a5490 (diff) | |
download | infrastructure-c110f9a103c2f676917e3fe5e33f4eaedfed070c.tar.gz |
Refactor wireguard role with new host declaration.
Diffstat (limited to 'roles/wireguard/templates/host.conf.j2')
-rw-r--r-- | roles/wireguard/templates/host.conf.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
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 |