Change the order of params for openstack-ansible
In order to allow deployers to override variable from user_variables.yml for the specific run of openstack-ansible with --extra-vars flag we're changing the order of passed arguments to the ansible-playbook. Change-Id: I1ad7d35241eef80ee5e46583b9625cb2694fc063
This commit is contained in:
parent
ea73ecf1e6
commit
0f8a14baf9
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Passed --extra-vars flag to the openstack-ansible should have precedence
|
||||
over the user-variables*.yml now.
|
@ -77,7 +77,7 @@ fi
|
||||
|
||||
# Execute the Ansible command.
|
||||
if [ "${RUN_CMD}" == "openstack-ansible" ] || [ "${RUN_CMD}" == "ansible-playbook" ]; then
|
||||
ansible-playbook "${@}" ${VAR1}
|
||||
ansible-playbook ${VAR1} "${@}"
|
||||
PLAYBOOK_RC="$?"
|
||||
if [[ "${PLAYBOOK_RC}" -ne "0" ]]; then
|
||||
echo -e "\nEXIT NOTICE [Playbook execution failure] **************************************"
|
||||
@ -87,5 +87,5 @@ if [ "${RUN_CMD}" == "openstack-ansible" ] || [ "${RUN_CMD}" == "ansible-playboo
|
||||
echo "==============================================================================="
|
||||
exit "${PLAYBOOK_RC}"
|
||||
else
|
||||
${RUN_CMD} "${@}" ${VAR1}
|
||||
${RUN_CMD} ${VAR1} "${@}"
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user