hosts.j2 643 B

1234567891011121314151617181920
  1. {% if ansible_prolog -%}
  2. {% from 'templates/ansible/prolog.j2' import prolog with context %}
  3. {{ prolog() }}
  4. {% endif -%}
  5. 127.0.0.1 localhost
  6. {% if ansible_default_ipv4 is defined %}
  7. {{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }}
  8. {% endif %}
  9. {% if ansible_default_ipv6 is defined %}
  10. {{ ansible_default_ipv6.address }} {{ ansible_fqdn }} {{ ansible_hostname }}
  11. {% endif %}
  12. # The following lines are desirable for IPv6 capable hosts
  13. ::1 localhost ip6-localhost ip6-loopback
  14. fe00::0 ip6-localnet
  15. ff00::0 ip6-mcastprefix
  16. ff02::1 ip6-allnodes
  17. ff02::2 ip6-allrouters
  18. ff02::3 ip6-allhosts