Fix log path option
The log path option is attempting to log to a directory that may not exist. To fix this the "openstack-ansible.rc" file will now check if the log path directory exists and if it is missing an attempt will be made to create it. Should there be any issue in creating the log path directory the variable will be unset allowing Ansible to continue without emitting an error message. Change-Id: Ic7827f35df3a7005b24db79e5b374f5e4ed1282b Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
This commit is contained in:
parent
1083dc9a7f
commit
ab80b0a387
@ -17,6 +17,8 @@ export ANSIBLE_RETRY_FILES_ENABLED="${ANSIBLE_RETRY_FILES_ENABLED:-False}"
|
||||
export ANSIBLE_INVENTORY="${ANSIBLE_INVENTORY:-inventory}"
|
||||
|
||||
export ANSIBLE_LOG_PATH="${ANSIBLE_LOG_PATH:-/openstack/log/ansible-logging/ansible.log}"
|
||||
mkdir -p "$(dirname ${ANSIBLE_LOG_PATH})" || unset ANSIBLE_LOG_PATH
|
||||
|
||||
export ANSIBLE_ROLES_PATH="${ANSIBLE_ROLES_PATH:-/etc/ansible/roles:roles}"
|
||||
|
||||
export ANSIBLE_LIBRARY="${ANSIBLE_LIBRARY:-/etc/ansible/roles/plugins/library}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user