3
0
Fork 0

readd new line to separate peers in config

This commit is contained in:
Frédéric Bourqui 2019-11-02 06:32:10 +01:00
parent 9d91823ac3
commit 3f5c3bc1b1
1 changed files with 1 additions and 1 deletions

View File

@ -15,9 +15,9 @@ PostDown = {{hostvars[inventory_hostname].wireguard_postdown}}
{% if hostvars[inventory_hostname].wireguard_save_config is defined %}
SaveConfig = true
{% endif %}
{% for host in ansible_play_hosts %}
{% if host != inventory_hostname %}
[Peer]
PublicKey = {{hostvars[host].public_key}}
{% if hostvars[host].wireguard_allowed_ips is defined %}