fix: Remove current instance

This commit is contained in:
2025-03-30 18:22:46 +02:00
parent 8b13ab3410
commit 387a4c8fd5
3 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
# {{ ansible_managed }}
# ansible inventory
{%- set hosts = groups[dnsmasq_ansible_group] | sort | reject('equalto', inventory_hostname) %}
{%- set hosts = groups[dnsmasq_ansible_group] | reject('equalto', inventory_hostname) | sort %}
{%- for host in hosts %}
{%- set ipv4 = hostvars[host]['ansible_host'] %}
{%- set ipv6_prefix = dnsmasq_ipv6_subnet | split('/') | first %}