Use proper hostname source when templating hosts
Because we turn around and invalidate nodename like immediately
This commit is contained in:
parent
71cfb5c2be
commit
531b2e19dc
@ -1,5 +1,5 @@
|
|||||||
127.0.0.1 localhost
|
127.0.0.1 localhost
|
||||||
127.0.0.1 {{ ansible_facts['nodename'] }}
|
127.0.0.1 {{ inventory_hostname }}
|
||||||
|
|
||||||
# The following lines are desirable for IPv6 capable hosts
|
# The following lines are desirable for IPv6 capable hosts
|
||||||
::1 localhost ip6-localhost ip6-loopback
|
::1 localhost ip6-localhost ip6-loopback
|
||||||
|
Loading…
Reference in New Issue
Block a user