Merge "Include hostnames in /etc/hosts"
This commit is contained in:
commit
b37b49e2bc
@ -4,6 +4,7 @@
|
|||||||
{% set hosts = {} -%}
|
{% set hosts = {} -%}
|
||||||
{% for host, vars in hostvars.items() -%}
|
{% for host, vars in hostvars.items() -%}
|
||||||
{% set _ = hosts.update({host: vars['nodepool']['private_ipv4']}) -%}
|
{% set _ = hosts.update({host: vars['nodepool']['private_ipv4']}) -%}
|
||||||
|
{% set _ = hosts.update({vars['ansible_hostname']: vars['nodepool']['private_ipv4']}) -%}
|
||||||
{% endfor -%}
|
{% endfor -%}
|
||||||
{{- hosts -}}
|
{{- hosts -}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user