From 215b965d8b3e0f215b33456a9890e348029855b6 Mon Sep 17 00:00:00 2001 From: "pulsar89.5" Date: Thu, 15 Jun 2023 11:12:20 +0200 Subject: [PATCH] [EVO] Grouper les IPv4 et IPv6 --- README.md | 4 ++-- defaults/main.yml | 3 +-- templates/host.conf.j2 | 5 +---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index dec814e..34dfdc7 100644 --- a/README.md +++ b/README.md @@ -22,9 +22,9 @@ Liste d'IP ou de noms d'hôtes servant de serveur DNS. *Valeur par défaut: 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. *Valeur par défaut: aucune* diff --git a/defaults/main.yml b/defaults/main.yml index 5fbf383..7a47c24 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 }}" diff --git a/templates/host.conf.j2 b/templates/host.conf.j2 index 6dec476..fd2579d 100644 --- a/templates/host.conf.j2 +++ b/templates/host.conf.j2 @@ -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 %} -- 2.39.5