Ensure that ansible facts folder exists

In https://review.openstack.org/452196 the use
of local facts was implemented, but there is no
guarantee that the facts folder exists. If this
is the case then the fact setting fails.

This patch ensures that the fact folder exists
before using it.

Change-Id: Ic0f9ba7406614870f337a965fa70993141e7a357
This commit is contained in:
Jesse Pretorius 2017-05-02 13:55:14 +01:00 committed by Jesse Pretorius (odyssey4me)
parent 511d607ae0
commit 2ffe5dbe66

View File

@ -81,6 +81,7 @@
- { path: "{{ keystone_system_user_home }}" }
- { path: "/var/www/cgi-bin", owner: root, group: root }
- { path: "/var/www/cgi-bin/keystone" }
- { path: "/etc/ansible/facts.d", owner: root, group: root }
delegate_to: "{{ item[0] }}"
when: "{{ inventory_hostname == ansible_play_hosts[0] }}"