From e4eb3bce26a9fe5cd4bc0f5e94398a31dc8d656a Mon Sep 17 00:00:00 2001 From: binary Date: Wed, 17 Mar 2021 21:11:49 +0100 Subject: Add time between destruction and creation of iface --- roles/wireguard/tasks/server.yml | 1 + 1 file changed, 1 insertion(+) (limited to 'roles') diff --git a/roles/wireguard/tasks/server.yml b/roles/wireguard/tasks/server.yml index aac9197..32d52fc 100644 --- a/roles/wireguard/tasks/server.yml +++ b/roles/wireguard/tasks/server.yml @@ -23,6 +23,7 @@ - name: restart wireguard interface shell: | ifconfig tun0 destroy + sleep 2 sh /etc/netstart tun0 register: result -- cgit v1.2.3