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 Changelog
--------- ---------
**7.11.0**
- Introduce new variables `wireguard_service_enabled` and `wireguard_service_state` (contribution by @tjend)
**7.10.0** **7.10.0**
- Support for Proxmox - 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 # The default mode of the wg.conf file
wireguard_conf_mode: 0600 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.: 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 }}" name: "wg-quick@{{ wireguard_interface }}"
state: "{{ item }}" state: "{{ item }}"
loop: loop:
- stopped - stopped
- started - started
when: when:
- not wg_syncconf - not wg_syncconf
- not ansible_os_family == 'Darwin' - not ansible_os_family == 'Darwin'
@ -17,12 +17,12 @@
- name: syncconf wireguard - name: syncconf wireguard
shell: | shell: |
set -o errexit set -o errexit
set -o pipefail set -o pipefail
set -o nounset set -o nounset
systemctl is-active wg-quick@{{ wireguard_interface|quote }} || systemctl start wg-quick@{{ wireguard_interface|quote }} 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) wg syncconf {{ wireguard_interface|quote }} <(wg-quick strip /etc/wireguard/{{ wireguard_interface|quote }}.conf)
exit 0 exit 0
args: args:
executable: "/bin/bash" executable: "/bin/bash"
when: when:

Loading…
Cancel
Save