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
|
||||
group: root
|
||||
mode: 0600
|
||||
notify:
|
||||
- restart wireguard
|
||||
tags:
|
||||
- wg-config
|
||||
|
||||
- name: Start and enable WireGuard service
|
||||
service:
|
||||
name: wg-quick@wg0
|
||||
name: "wg-quick@{{wireguard_interface}}"
|
||||
state: started
|
||||
enabled: yes
|
||||
|
|
Reference in a new issue