role_dnsmasq/templates/host.conf.j2

10 lines
229 B
Plaintext
Raw Normal View History

2022-10-03 15:20:34 +00:00
# {{ ansible_managed }}
2023-06-05 13:19:23 +00:00
{% set ips = dnsmasq_host_ipv4 + dnsmasq_host_ipv6 %}
{% for ip in ips %}
{% if ip | length > 0 %}
2022-10-03 15:20:34 +00:00
{{ ip }} {{ dnsmasq_client_hostname }} {{ dnsmasq_host_aliases | join(' ') }}
2023-06-05 13:19:23 +00:00
{% endif %}
2022-10-03 15:20:34 +00:00
{% endfor %}