diff --git a/CHANGELOG.md b/CHANGELOG.md index 77c1d98..b0ac6ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,14 @@ Changelog --------- +**6.0.3** + +- If `wg syncconf` command is not available do stop/start service instead of restart (contribution by @cristichiru) + +**6.0.2** + +- Debian: install `gnupg` package instead of `gpg`. (contribution by @zinefer) + **6.0.1** - add shell options to syncconf handler to fail fast in case of error diff --git a/handlers/main.yml b/handlers/main.yml index 7d6b6e8..3476576 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -2,7 +2,10 @@ - name: restart wireguard service: name: "wg-quick@{{ wireguard_interface }}" - state: restarted + state: "{{ item }}" + loop: + - stopped + - started when: not wg_syncconf listen: "reconfigure wireguard" diff --git a/tasks/setup-debian.yml b/tasks/setup-debian.yml index 59fe6a4..48a94dc 100644 --- a/tasks/setup-debian.yml +++ b/tasks/setup-debian.yml @@ -11,7 +11,7 @@ - name: Install GPG - required to add wireguard key apt: - name: gpg + name: gnupg state: present - name: Add WireGuard key