Merge "Include hostnames in /etc/hosts"

This commit is contained in:
Zuul 2018-06-06 19:51:04 +00:00 committed by Gerrit Code Review
commit b37b49e2bc
1 changed files with 1 additions and 0 deletions

View File

@ -4,6 +4,7 @@
{% set hosts = {} -%}
{% for host, vars in hostvars.items() -%}
{% set _ = hosts.update({host: vars['nodepool']['private_ipv4']}) -%}
{% set _ = hosts.update({vars['ansible_hostname']: vars['nodepool']['private_ipv4']}) -%}
{% endfor -%}
{{- hosts -}}