role_dnsmasq/templates/specific.conf.j2

7 lines
163 B
Plaintext
Raw Permalink Normal View History

2023-09-26 09:12:29 +00:00
# {{ ansible_managed }}
{% for ip in item.ips %}
{% set aliases = item.get('aliases', []) %}
{{ ip }} {{ ([item.hostname] + aliases) | join(' ') }}
{% endfor %}