From ce732f492c7dd1203e5371176a27dfc19d137650 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Thu, 7 Jan 2016 08:39:05 -0800 Subject: [PATCH] Add use_hostnames to ansible clouds.yaml This is the clouds.yaml file that gets used by the ansible openstack inventory system. Setting use_hostnames to true indicates that generally, our hostnames are expected to be unique, so ansible can add them to the inventory based on their hostnames rather than their uuids. In the case that we have more than one host with the same hostname, ansible will still favor uuids. This should cause our logs to be more readable as they will include hostnames for most of the ansible actions. Change-Id: Ie4c24317429a8f0ac59729a2065dfae7fc6679d9 --- .../templates/puppetmaster/ansible-clouds.yaml.erb | 2 ++ 1 file changed, 2 insertions(+) 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