Merge pull request '[EVO] Grouper les IPv4 et IPv6' (#3) from groupIPs into master

Reviewed-on: #3
This commit is contained in:
pulsar89.5 2023-06-15 12:54:45 +00:00
commit b9baf12530
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 %}