summaryrefslogtreecommitdiffstats
path: root/kud/hosting_providers/vagrant
diff options
context:
space:
mode:
authorMichal Ptacek <m.ptacek@partner.samsung.com>2019-05-17 14:38:19 +0000
committerSamuli Silvius <s.silvius@partner.samsung.com>2019-05-21 13:12:24 +0000
commit79d769d72aaa797247aa452ce9d9739cef04e8c9 (patch)
treeeba27a54622ffde3d439c3a9f9fb76f700dce94a /kud/hosting_providers/vagrant
parentc8d038951d41978bb00005e23081e6562c0ab754 (diff)
Fixing ansible version
It would be safer to fix ansible version to prevent issues coming with newer ansible releases which might not be compatible with current playbooks within this repo. E.g. 2.8.0 is not compatible. Change-Id: Ia1b54c7644bcaf6c453ff6586682ca35ced9acec Issue-ID: MULTICLOUD-634 Signed-off-by: Michal Ptacek <m.ptacek@partner.samsung.com> Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com>
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 c17f89e8..0ea8930f 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