From b59a9efa8481fb1f999d0e387b196393da6c9c7e Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 7 Aug 2023 20:39:15 +0200 Subject: wireguard: don't forget to enable the wg-quick service --- roles/wireguard/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'roles') 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 -- cgit v1.2.3