Forcing stop and start to clear routes (#46)
This commit is contained in:
parent
43ad9a1cfe
commit
6348c48193
|
@ -2,7 +2,10 @@
|
||||||
- name: restart wireguard
|
- name: restart wireguard
|
||||||
service:
|
service:
|
||||||
name: "wg-quick@{{ wireguard_interface }}"
|
name: "wg-quick@{{ wireguard_interface }}"
|
||||||
state: restarted
|
state: "{{ item }}"
|
||||||
|
loop:
|
||||||
|
- stopped
|
||||||
|
- started
|
||||||
when: not wg_syncconf
|
when: not wg_syncconf
|
||||||
listen: "reconfigure wireguard"
|
listen: "reconfigure wireguard"
|
||||||
|
|
||||||
|
|
Reference in a new issue