aboutsummaryrefslogtreecommitdiffstats
path: root/roles/space_server/templates/avahi-hosts.j2
blob: 1e371e61ba5a4fa4bc9f130630bce5f6968a5359 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% for host in local_hosts %}
{%   if 'mdns' not in host or host.mdns %}
{%     if 'ipv4' in host %}
{%       for ip in host.ipv4 %}
{%         if loop.index <= 1 %}
{{ ip }} {{ host.name }}.local
{%         endif %}
{%       endfor %}
{%     endif %}
{%     if 'ipv6' in host %}
{%       for ip in host.ipv6 %}
{%         if loop.index <= 1 %}
{{ ip }} {{ host.name }}.local
{%         endif %}
{%       endfor %}
{%     endif %}
{%   endif %}
{% endfor %}