From 7a9f5301c9bf4d66efeb9d2891db47cccadfe1b5 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 22 Sep 2017 18:37:58 +0100 Subject: xci: xci-deploy.sh: Make sure all local Ansible installations are gone We need to ensure that all Ansible installations are gone before we install it again so we can ensure that a local or system wide installation will not take precedence over the one we try to install. Change-Id: I9daf66d661697baf63340ba4af1cd58fbd81f143 Signed-off-by: Markos Chandras --- xci/xci-deploy.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/xci/xci-deploy.sh b/xci/xci-deploy.sh index 95856105..0ee52624 100755 --- a/xci/xci-deploy.sh +++ b/xci/xci-deploy.sh @@ -143,8 +143,15 @@ echo echo "Info: Configuring localhost for openstack-ansible" echo "-----------------------------------------------------------------------" -# NOTE(hwoarang) we need newer ansible to work on the OSA playbooks +# NOTE(hwoarang) we need newer ansible to work on the OSA playbooks. Make sure +# all installations are gone. This is ugly and has to be removed as soon as we +# are able to deploy bifrost in vent or when bifrost start working with newest +# ansible +pip uninstall -y ansible || true +sudo -H pip uninstall -y ansible || true sudo pip install --force-reinstall ansible==${XCI_ANSIBLE_PIP_VERSION} +# Start fresh +hash -r cd $XCI_PATH/playbooks ansible-playbook -i inventory configure-localhost.yml echo "-----------------------------------------------------------------------" -- cgit 1.2.3-korg