From 2ffe5dbe661980f6360a6c95cb22c8f150261e27 Mon Sep 17 00:00:00 2001 From: Jesse Pretorius Date: Tue, 2 May 2017 13:55:14 +0100 Subject: [PATCH] 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 --- tasks/keystone_pre_install.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/keystone_pre_install.yml b/tasks/keystone_pre_install.yml index 0e3d6362..805cafa7 100644 --- a/tasks/keystone_pre_install.yml +++ b/tasks/keystone_pre_install.yml @@ -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] }}"