From 2354d5ad3e14a42bbf10a4659aba832fc8df176b Mon Sep 17 00:00:00 2001 From: Niklas Yann Wettengel Date: Thu, 8 Feb 2018 21:03:46 +0100 Subject: endpoint for additional wireguard backbone peers is now optional --- roles/install_wireguard_backbone/templates/wg2.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/install_wireguard_backbone/templates') diff --git a/roles/install_wireguard_backbone/templates/wg2.conf.j2 b/roles/install_wireguard_backbone/templates/wg2.conf.j2 index cbccda8..c30fcaf 100644 --- a/roles/install_wireguard_backbone/templates/wg2.conf.j2 +++ b/roles/install_wireguard_backbone/templates/wg2.conf.j2 @@ -5,5 +5,5 @@ PrivateKey = {{ wireguard_bb_priv_key }} [Peer] PublicKey = {{ item.pub_key }} AllowedIPs = 0.0.0.0/0,::/0 -Endpoint = [{{ item.endpoint }}]:{{ wireguard_bb_port }} +{% if item.endpoint is defined %}Endpoint = [{{ item.endpoint }}]:{{ wireguard_bb_port }}{% endif %} PersistentKeepalive = 30 -- cgit v1.2.3-54-g00ecf