diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-07 20:39:15 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-08-07 21:22:51 +0200 |
commit | b59a9efa8481fb1f999d0e387b196393da6c9c7e (patch) | |
tree | 7e51e587cb0e920e6bfbee5237cb83635beccdb1 /roles/wireguard/tasks/main.yml | |
parent | wireguard: refactoring, support peer endpoints (diff) | |
download | infra-ansible-b59a9efa8481fb1f999d0e387b196393da6c9c7e.tar.gz infra-ansible-b59a9efa8481fb1f999d0e387b196393da6c9c7e.zip |
wireguard: don't forget to enable the wg-quick service
Diffstat (limited to 'roles/wireguard/tasks/main.yml')
-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 |