diff options
author | Niklas Yann Wettengel <niyawe@niyawe.de> | 2018-02-08 21:03:46 +0100 |
---|---|---|
committer | Niklas Yann Wettengel <niyawe@niyawe.de> | 2018-02-08 21:03:46 +0100 |
commit | 2354d5ad3e14a42bbf10a4659aba832fc8df176b (patch) | |
tree | 1ae6c5401b90e839733da490e871e7a4e2db3a0b /roles/install_wireguard_backbone | |
parent | 4364aab1a9c21ed4fe6db8f19c57676da362df9a (diff) |
endpoint for additional wireguard backbone peers is now optional
Diffstat (limited to 'roles/install_wireguard_backbone')
-rw-r--r-- | roles/install_wireguard_backbone/templates/wg2.conf.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
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 |