From 1faf8d9f1218794b576890eac8f0684e739fb503 Mon Sep 17 00:00:00 2001 From: KemoNine Date: Tue, 4 Aug 2020 17:39:33 +0000 Subject: [PATCH] Attempt to tweak config generator to include ALL hosts that could have been included in the play, rather than just the ones matching filters (helpful for controller deployments) --- templates/wg.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/wg.conf.j2 b/templates/wg.conf.j2 index 0ab144b..ff05e19 100644 --- a/templates/wg.conf.j2 +++ b/templates/wg.conf.j2 @@ -39,7 +39,7 @@ PostDown = {{ wg_postdown }} {% if hostvars[inventory_hostname].wireguard_save_config is defined %} SaveConfig = true {% endif %} -{% for host in ansible_play_hosts %} +{% for host in ansible_play_hosts_all %} {% if host != inventory_hostname %} [Peer]