12345678910111213141516171819202122232425 |
- {% if ansible_prolog -%}
- {% from 'templates/ansible/prolog.j2' import prolog with context %}
- {{ prolog() }}
- {% endif -%}
- 127.0.0.1 localhost.localdomain localhost
- {% if hosts_fqdn and ansible_default_ipv4.address is defined %}
- {{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }}
- {% endif %}
- {% if hosts_fqdn and ansible_default_ipv6.address is defined %}
- {{ ansible_default_ipv6.address }} {{ ansible_fqdn }} {{ ansible_hostname }}
- {% endif %}
- {% if hosts_static_lookup %}
- {% for h in hosts_static_lookup %}
- {{ h }}
- {% endfor %}
- {%endif %}
- # The following lines are desirable for IPv6 capable hosts
- ::1 localhost ip6-localhost ip6-loopback
- fe00::0 ip6-localnet
- ff00::0 ip6-mcastprefix
- ff02::1 ip6-allnodes
- ff02::2 ip6-allrouters
- ff02::3 ip6-allhosts
|