fix bootstrap for ubuntu trusty

Change-Id: I8b9a34bb49a4be49ac5101dc42c7e855e0b485df
This commit is contained in:
Victor Palma 2018-05-29 18:20:27 -05:00
parent f856f3bfaf
commit 45a732aee4

View File

@ -18,8 +18,15 @@ export ANSIBLE_EMBED_HOME="${HOME}/ansible25"
OPTS+=('ANSIBLE_EMBED_HOME')
if [[ ! -e "${ANSIBLE_EMBED_HOME}/bin/ansible" ]]; then
apt-get update
apt-get -y install python3-virtualenv python-virtualenv
if [ ${DISTRIB_RELEASE} = "14.04" ]; then
apt-get update
apt-get -y install python-virtualenv
echo "done installing python-virtualenv"
else
apt-get update
apt-get -y install python3-virtualenv python-virtualenv
echo "done installing python-virtualenv python3-virtualenv"
fi
if [[ -f "/usr/bin/python2" ]]; then
virtualenv --python="/usr/bin/python2" "${ANSIBLE_EMBED_HOME}"
elif [[ -f "/usr/bin/python3" ]]; then