add restart handlers
This commit is contained in:
parent
f1b24d6ba4
commit
a7f3e01a12
9
handlers/main.yaml
Normal file
9
handlers/main.yaml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: Restart tunnels
|
||||
become: true
|
||||
service:
|
||||
name: "wg-quick@{{ item.name }}"
|
||||
state: restarted
|
||||
loop: "{{ wireguard_links }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
@ -23,6 +23,9 @@
|
||||
loop: "{{ wireguard_links }}"
|
||||
loop_control:
|
||||
label: "{{ item.name }}"
|
||||
notify: Restart tunnels
|
||||
|
||||
- meta: flush_handlers
|
||||
|
||||
- name: Enable and start services
|
||||
become: true
|
||||
|
Loading…
Reference in New Issue
Block a user