diff options
-rw-r--r-- | roles/wireguard/tasks/main.yml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/wireguard/tasks/main.yml b/roles/wireguard/tasks/main.yml index 2512b59..29068c9 100644 --- a/roles/wireguard/tasks/main.yml +++ b/roles/wireguard/tasks/main.yml @@ -15,9 +15,10 @@ group: root mode: '600' register: config - + - name: Restart wg-quick service ansible.builtin.systemd_service: name: 'wg-quick@{{ wg_name }}' + enabled: true state: restarted when: config.changed |