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