From 531b2e19dc309b16ded1d76615b24571f04f62fa Mon Sep 17 00:00:00 2001 From: Salt Date: Wed, 17 Jun 2020 09:24:34 -0500 Subject: [PATCH] Use proper hostname source when templating hosts Because we turn around and invalidate nodename like immediately --- roles/common/templates/hosts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/common/templates/hosts b/roles/common/templates/hosts index 8b3937d..786d01c 100644 --- a/roles/common/templates/hosts +++ b/roles/common/templates/hosts @@ -1,5 +1,5 @@ 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 ::1 localhost ip6-localhost ip6-loopback