diff --git a/modules/openstack_project/templates/puppetmaster/ansible-clouds.yaml.erb b/modules/openstack_project/templates/puppetmaster/ansible-clouds.yaml.erb
index 64ac3ca519..a00f665e40 100644
--- a/modules/openstack_project/templates/puppetmaster/ansible-clouds.yaml.erb
+++ b/modules/openstack_project/templates/puppetmaster/ansible-clouds.yaml.erb
@@ -1,3 +1,5 @@
+ansible:
+  use_hostnames: True
 cache:
   expiration_time: 86400
   path: /var/cache/ansible-inventory