{% if ansible_controlled is defined and ansible_controlled != "" %} # # {{ ansible_controlled }} # {% 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