Revert "feat: Generate file for all ansible hosts"

This reverts commit 3b2c621dca.
This commit is contained in:
2023-12-13 17:24:08 +01:00
parent 3b2c621dca
commit 1090043f34
3 changed files with 4 additions and 27 deletions

View File

@@ -1,13 +0,0 @@
# {{ ansible_managed }}
{% for host in groups['all'] %}
# BEGIN {{ host }}
{% if hostvars[host]["dnsmasq_host_ipv4"] | length > 0 %}
hostvars[host]["dnsmasq_host_ipv4"] {{ hostvars[host]["dnsmasq_client_hostname"] }} {{ hostvars[host]["dnsmasq_host_aliases"] | join(' ') }}
{% endif %}
{% if hostvars[host]["dnsmasq_host_ipv4"] | length > 0 %}
hostvars[host]["dnsmasq_host_ipv4"] {{ hostvars[host]["dnsmasq_client_hostname"] }} {{ hostvars[host]["dnsmasq_host_aliases"] | join(' ') }}
{% endif %}
# END {{ host }}
{% endfor %}

View File

@@ -37,4 +37,4 @@ rebind-localhost-ok
cache-size=1024
# Définir le fichier des entrées personnalisées
addn-hosts=/srv/dnsmasq/*.conf
addn-hosts=/srv/dnsmasq