From 5e94eb31c5baafb6a2c0498b92b91c00164d7c5a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Wed, 2 Jan 2019 15:08:16 +0100 Subject: wireguard: Fixing persistent keepalive. --- ansible/roles/wireguard/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ansible/roles/wireguard') diff --git a/ansible/roles/wireguard/tasks/main.yml b/ansible/roles/wireguard/tasks/main.yml index 9d87c5b..510492d 100644 --- a/ansible/roles/wireguard/tasks/main.yml +++ b/ansible/roles/wireguard/tasks/main.yml @@ -54,13 +54,13 @@ [WireGuard] PrivateKey={{ wg_private_key['content'] | b64decode }} - PersistentKeepalive=60 [WireGuardPeer] PublicKey={{ lookup('file', wireguard__server.ansible_hostname + '/etc/wireguard/public.key') }} AllowedIPs=0.0.0.0/0 AllowedIPs=::/0 Endpoint={{ wireguard__server.hostname }}:{{ wireguard__listen_port }} + PersistentKeepalive=60 - name: Make /etc/systemd/network/60-wg-XXX.netdev (Server) when: wireguard__role == 'server' -- cgit v1.2.3