Compare commits

..

2 Commits

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*
### 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*

View File

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

View File

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