From 6348c4819322a767a1f3b4a1a5d3d23268760594 Mon Sep 17 00:00:00 2001 From: Cristian Chiru Date: Fri, 3 Apr 2020 21:59:32 +0300 Subject: [PATCH] Forcing stop and start to clear routes (#46) --- handlers/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/handlers/main.yml b/handlers/main.yml index 7d6b6e8..3476576 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -2,7 +2,10 @@ - name: restart wireguard service: name: "wg-quick@{{ wireguard_interface }}" - state: restarted + state: "{{ item }}" + loop: + - stopped + - started when: not wg_syncconf listen: "reconfigure wireguard"