Use proper hostname source when templating hosts

Because we turn around and invalidate nodename like immediately
This commit is contained in:
Salt 2020-06-17 09:24:34 -05:00
parent 71cfb5c2be
commit 531b2e19dc

View File

@ -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