From f6c48db73f578701cbb93090c89d2f6ffe1c977a Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Wed, 12 Jul 2023 08:56:01 +0300 Subject: [PATCH] add restart of vpn when changes --- tasks/configure.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/configure.yml b/tasks/configure.yml index 38f467c..3f957a4 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -39,6 +39,8 @@ port: "{{ vpnes_port }}" comment: 'Wireguard client listener' proto: udp + notify: + - Restart Wireguard service - name: Show public key reminder debug: @@ -90,6 +92,8 @@ rule: allow from: "{{ pub_ip.json.ip }}" delegate_to: "{{ groups['wireguard_server'][0] }}" + notify: + - Restart Wireguard service - name: Ping VPN server for monitoring shell: "ping -c 3 -4 {{ server_address }}"