Skip to content

Commit

Permalink
Updated localhost format in the hosts file.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandruanghel committed Mar 20, 2016
1 parent 7387aa1 commit c598a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playbooks/roles/common/templates/hosts.j2
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
127.0.0.1 localhost.localdomain localhost
::1 localhost6.localdomain6 localhost6
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
{% for node in groups['hadoop-cluster'] %}
{{ hostvars[node]['ansible_'~hostvars[node].cluster_interface|default(hostvars[node].ansible_default_ipv4.alias)]['ipv4']['address'] }} {{ hostvars[node]['ansible_nodename'] }} {{ hostvars[node]['ansible_hostname'] }}
{% endfor %}

0 comments on commit c598a02

Please sign in to comment.