aboutsummaryrefslogtreecommitdiffstats
path: root/kud/hosting_providers/vagrant
diff options
context:
space:
mode:
authorBin Yang <bin.yang@windriver.com>2019-05-22 01:43:23 +0000
committerGerrit Code Review <gerrit@onap.org>2019-05-22 01:43:23 +0000
commit65003b68b650dee4bb81d975707a580722fc3897 (patch)
tree78828100682d13cd8c5aaa7cda88bee60f813c24 /kud/hosting_providers/vagrant
parentf0f575b6c0c66cdd82cdc5f17a54e02d445cd9a7 (diff)
parent79d769d72aaa797247aa452ce9d9739cef04e8c9 (diff)
Merge "Fixing ansible version"
Diffstat (limited to 'kud/hosting_providers/vagrant')
-rwxr-xr-xkud/hosting_providers/vagrant/installer.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/kud/hosting_providers/vagrant/installer.sh b/kud/hosting_providers/vagrant/installer.sh
index 2e7a3db1..c37d2746 100755
--- a/kud/hosting_providers/vagrant/installer.sh
+++ b/kud/hosting_providers/vagrant/installer.sh
@@ -40,12 +40,13 @@ function _install_pip {
# _install_ansible() - Install and Configure Ansible program
function _install_ansible {
- sudo mkdir -p /etc/ansible/
if $(ansible --version &>/dev/null); then
- return
+ sudo pip uninstall -y ansible
fi
_install_pip
- sudo -E pip install ansible
+ local version=$(grep "ansible_version" ${kud_playbooks}/kud-vars.yml | awk -F ': ' '{print $2}')
+ sudo mkdir -p /etc/ansible/
+ sudo -E pip install ansible==$version
}
# _install_docker() - Download and install docker-engine