diff options
Diffstat (limited to 'ansible/roles/wireguard')
-rw-r--r-- | ansible/roles/wireguard/tasks/main.yml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ansible/roles/wireguard/tasks/main.yml b/ansible/roles/wireguard/tasks/main.yml index 193b549..67529bd 100644 --- a/ansible/roles/wireguard/tasks/main.yml +++ b/ansible/roles/wireguard/tasks/main.yml @@ -71,7 +71,7 @@ {% for hostname in wg_net.hosts|sort %} {% set host = wg_net.hosts[hostname] %} {% set present = not (host.state is defined) or host.state == 'present' %} - {% if present and (all_peers or host.endpoint is defined) %} + {% if present and (all_peers or host.endpoint is defined) and (hostname != inventory_hostname) %} # {{ hostname }} [WireGuardPeer] |