# {{ ansible_managed }} {% set ips = dnsmasq_host_ipv4 + dnsmasq_host_ipv6 %} {% for ip in ips %} {% if ip | length > 0 %} {{ ip }} {{ dnsmasq_client_hostname }} {{ dnsmasq_host_aliases | join(' ') }} {% endif %} {% endfor %}