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"