11 lines
398 B
Django/Jinja
11 lines
398 B
Django/Jinja
# {{ ansible_managed }}
|
|
|
|
{% for host in groups['all'] %}
|
|
## BEGIN {{ hostvars[host]['inventory_hostname'] }}
|
|
{% for ip in dnsmasq_host_ips %}
|
|
{% set hostnames = [hostvars[host]['inventory_hostname']] + [hostvars[host]['inventory_hostname_short']] + dnsmasq_host_aliases %}
|
|
{{ ip }} {{ hostnames | select() | join(' ') }}
|
|
{% endfor %}
|
|
## END {{ hostvars[host]['inventory_hostname'] }}
|
|
{% endfor %}
|