role_dnsmasq/templates/specific.conf.j2

7 lines
163 B
Django/Jinja

# {{ ansible_managed }}
{% for ip in item.ips %}
{% set aliases = item.get('aliases', []) %}
{{ ip }} {{ ([item.hostname] + aliases) | join(' ') }}
{% endfor %}