Update readme chlog formatting (#108)

* handlers/main.yml: better formatting

* update README/CHANGELOG
master 7.11.0
Robert Wimmer 4 years ago committed by GitHub
parent 2d6e36572b
commit 57340b6c06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,6 +6,10 @@ SPDX-License-Identifier: GPL-3.0-or-later
Changelog
---------
**7.11.0**
- Introduce new variables `wireguard_service_enabled` and `wireguard_service_state` (contribution by @tjend)
**7.10.0**
- Support for Proxmox

@ -71,6 +71,10 @@ wireguard_conf_group: "{{ 'root' if not ansible_os_family == 'Darwin' else 'whee
# The default mode of the wg.conf file
wireguard_conf_mode: 0600
# The default state of the wireguard service
wireguard_service_enabled: "yes"
wireguard_service_state: "started"
```
The following variable is mandatory and needs to be configured for every host in `host_vars/` e.g.:

@ -7,8 +7,8 @@
name: "wg-quick@{{ wireguard_interface }}"
state: "{{ item }}"
loop:
- stopped
- started
- stopped
- started
when:
- not wg_syncconf
- not ansible_os_family == 'Darwin'
@ -17,12 +17,12 @@
- name: syncconf wireguard
shell: |
set -o errexit
set -o pipefail
set -o nounset
systemctl is-active wg-quick@{{ wireguard_interface|quote }} || systemctl start wg-quick@{{ wireguard_interface|quote }}
wg syncconf {{ wireguard_interface|quote }} <(wg-quick strip /etc/wireguard/{{ wireguard_interface|quote }}.conf)
exit 0
set -o errexit
set -o pipefail
set -o nounset
systemctl is-active wg-quick@{{ wireguard_interface|quote }} || systemctl start wg-quick@{{ wireguard_interface|quote }}
wg syncconf {{ wireguard_interface|quote }} <(wg-quick strip /etc/wireguard/{{ wireguard_interface|quote }}.conf)
exit 0
args:
executable: "/bin/bash"
when:

Loading…
Cancel
Save