From 1acfabf6ca6495be9af93a7b29feeaccab16e519 Mon Sep 17 00:00:00 2001 From: Cristian Chiru Date: Tue, 24 Mar 2020 19:45:54 +0200 Subject: [PATCH] Forcing stop and start to clear routes --- 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"