honor wireguard_save_config value (#149)

* honor wireguard_save_config value

* update CHANGELOG
master 9.0.1
Robert Wimmer 3 years ago committed by GitHub
parent d0df49bbfa
commit 2b3c878715
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -5,6 +5,10 @@ SPDX-License-Identifier: GPL-3.0-or-later
# Changelog
## 9.0.1
- FIX: The template rendering the WireGuard configuration only checked if `wireguard_save_config` was set and if so sets `SaveConfig = true`. So setting `wireguard_save_config: "false"` had no effect.
## 9.0.0
- set minimally required Ansible version to `2.9` (contribution by @8ware)

@ -42,7 +42,7 @@ PostDown = {{ wg_postdown }}
{% endfor %}
{% endif %}
{% if wireguard_save_config is defined %}
SaveConfig = true
SaveConfig = {{ wireguard_save_config }}
{% endif %}
{% for host in ansible_play_hosts %}
{% if host != inventory_hostname %}

Loading…
Cancel
Save