hosts.j2 458 B

123456789101112131415
  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. {{ ansible_default_ipv4.address }} {{ ansible_fqdn }} {{ ansible_hostname }}
  7. # The following lines are desirable for IPv6 capable hosts
  8. ::1 localhost ip6-localhost ip6-loopback
  9. fe00::0 ip6-localnet
  10. ff00::0 ip6-mcastprefix
  11. ff02::1 ip6-allnodes
  12. ff02::2 ip6-allrouters
  13. ff02::3 ip6-allhosts