Skip to content
Snippets Groups Projects
Select Git revision
  • e4cd88e10a6a9bad97d3fb616f69a96c842b4d98
  • master default protected
  • th/btop
  • th/ssh-config
  • th/rwth-afu
  • th/rhel
  • th/emacs-nox-gtk
7 results

hosts.j2

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    hosts.j2 599 B
    127.0.0.1	localhost
    ::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
    
    {% for host in hosts_alternates %}
    {{ host }}	{{ ansible_host }} {{ inventory_hostname }}
    {% else %}
    {{ ansible_default_ipv4.address }}	{{ ansible_host }} {{ inventory_hostname }}
    {% if 'address' in ansible_default_ipv6 %}
    {{ ansible_default_ipv6.address }}	{{ ansible_host }} {{ inventory_hostname }}
    {% endif %}
    {% endfor %}
    
    {% for host in hosts_additionals %}
    {{ host.address }}	{{ host.names|join(' ') }}
    {% endfor %}