diff options
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/wireguard/handlers/main.yml | 4 | ||||
| -rw-r--r-- | roles/wireguard/tasks/main.yml | 2 | 
2 files changed, 6 insertions, 0 deletions
| diff --git a/roles/wireguard/handlers/main.yml b/roles/wireguard/handlers/main.yml new file mode 100644 index 0000000..0edcf3a --- /dev/null +++ b/roles/wireguard/handlers/main.yml @@ -0,0 +1,4 @@ +- name: reload wg-quick +  service: +    name: wg-quick@wg0 +    state: reloaded diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml index 66d35a4..f8495cd 100644 --- a/roles/wireguard/tasks/main.yml +++ b/roles/wireguard/tasks/main.yml @@ -46,6 +46,8 @@      mode: '0600'      group: root      owner: root +  notify: +    - reload wg-quick  - name: Start and enable the WireGuard service    service: | 
