{% if ansible_prolog -%} {% from 'templates/ansible/prolog.j2' import prolog with context %} {{ prolog() }} {% endif -%} 127.0.0.1 localhost.localdomain localhost {% if ansible_default_ipv4.address is defined %} {{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }} {% endif %} {% if ansible_default_ipv6.address is defined %} {{ ansible_default_ipv6.address }} {{ ansible_fqdn }} {{ ansible_hostname }} {% 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