fix: Change records file deployment

This commit is contained in:
2025-03-30 18:15:58 +02:00
parent bd8d50c06d
commit 8b13ab3410
3 changed files with 7 additions and 11 deletions

View File

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

View File

@@ -1,8 +0,0 @@
# {{ ansible_managed }}
{% for specific in dnsmasq_specifics %}
# {{ specific.hostname }}
{% for ip in specific.ips %}
{{ ip }} {{ specific.hostname }}
{% endfor %}
{% endfor %}