3
0
Fork 0

add handler

This commit is contained in:
githubixx 2018-07-19 23:53:16 +02:00
parent 977b21147a
commit 251d97d18a
2 changed files with 7 additions and 1 deletions

View File

@ -1 +1,5 @@
--- ---
- name: restart wireguard
service:
name: "wg-quick@{{wireguard_interface}}"
state: restarted

View File

@ -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