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