aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-08-07 21:18:54 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-08-07 21:22:51 +0200
commit013e3e142e40a345ee723f8cee318229fadf6ab8 (patch)
tree57e6f068cb0c52741a08b11fc477ef9e4ce56a72
parentwireguard: explicitly set SaveConfig=false (diff)
downloadinfra-ansible-013e3e142e40a345ee723f8cee318229fadf6ab8.tar.gz
infra-ansible-013e3e142e40a345ee723f8cee318229fadf6ab8.zip
wireguard: persistent_keepalive can be set to false
-rw-r--r--roles/wireguard/templates/wg0.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/wireguard/templates/wg0.conf b/roles/wireguard/templates/wg0.conf
index 6e479a6..1d6140c 100644
--- a/roles/wireguard/templates/wg0.conf
+++ b/roles/wireguard/templates/wg0.conf
@@ -15,7 +15,7 @@ AllowedIPs = {{ peer.allowed_ips }}
{% if peer.endpoint is defined %}
Endpoint = {{ peer.endpoint }}
{% endif %}
-{% if peer.persistent_keepalive is defined %}
+{% if peer.persistent_keepalive is defined and peer.persistent_keepalive %}
PersistentKeepalive = 25
{% endif %}
{% endfor %}