add handler
This commit is contained in:
parent
977b21147a
commit
251d97d18a
|
@ -1 +1,5 @@
|
||||||
---
|
---
|
||||||
|
- name: restart wireguard
|
||||||
|
service:
|
||||||
|
name: "wg-quick@{{wireguard_interface}}"
|
||||||
|
state: restarted
|
||||||
|
|
|
@ -138,11 +138,13 @@
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0600
|
mode: 0600
|
||||||
|
notify:
|
||||||
|
- restart wireguard
|
||||||
tags:
|
tags:
|
||||||
- wg-config
|
- wg-config
|
||||||
|
|
||||||
- name: Start and enable WireGuard service
|
- name: Start and enable WireGuard service
|
||||||
service:
|
service:
|
||||||
name: wg-quick@wg0
|
name: "wg-quick@{{wireguard_interface}}"
|
||||||
state: started
|
state: started
|
||||||
enabled: yes
|
enabled: yes
|
||||||
|
|
Reference in a new issue