[EVO] Grouper les IPv4 et IPv6

This commit is contained in:
pulsar89.5 2023-06-15 11:12:20 +02:00
parent 712b394e8d
commit 215b965d8b
3 changed files with 4 additions and 8 deletions

View File

@ -22,9 +22,9 @@ Liste d'IP ou de noms d'hôtes servant de serveur DNS.
*<span style="text-decoration: underline">Valeur par défaut:</span> aucune* *<span style="text-decoration: underline">Valeur par défaut:</span> aucune*
### dnsmasq_host_ipv4 ou dnsmasq_host_ipv6 ### dnsmasq_host_ips
Liste d'IP de l'hôte. Liste des IP de l'hôte.
*<span style="text-decoration: underline">Valeur par défaut:</span> aucune* *<span style="text-decoration: underline">Valeur par défaut:</span> aucune*

View File

@ -6,8 +6,7 @@ dnsmasq_conf_servers: []
dnsmasq_servers: [] dnsmasq_servers: []
dnsmasq_host_ipv4: [] dnsmasq_host_ips: []
dnsmasq_host_ipv6: []
dnsmasq_host_aliases: [] dnsmasq_host_aliases: []
dnsmasq_client_filename: "{{ inventory_hostname }}" dnsmasq_client_filename: "{{ inventory_hostname }}"

View File

@ -1,8 +1,5 @@
# {{ ansible_managed }} # {{ ansible_managed }}
{% for ip in dnsmasq_host_ipv4 %} {% for ip in dnsmasq_host_ips %}
{{ ip }} {{ dnsmasq_client_hostname }} {{ dnsmasq_host_aliases | join(' ') }}
{% endfor %}
{% for ip in dnsmasq_host_ipv6 %}
{{ ip }} {{ dnsmasq_client_hostname }} {{ dnsmasq_host_aliases | join(' ') }} {{ ip }} {{ dnsmasq_client_hostname }} {{ dnsmasq_host_aliases | join(' ') }}
{% endfor %} {% endfor %}