DCD-686: Move back to pipenv-based Ansible installation to work around bugs (again).

This commit is contained in:
Steve Smith
2019-10-04 13:55:37 +10:00
parent bbff7f94bb
commit 87ac31ea3a
4 changed files with 69 additions and 70 deletions

View File

@@ -14,8 +14,9 @@ source $ENV_FILE
set +a
# Use Ansible from virtualenv if provided
ansible-playbook -v \
$ATL_DEPLOYMENT_REPOSITORY_CUSTOM_PARAMS \
-i $INV \
$PLAYBOOK \
2>&1 | tee --append $LOG_FILE
pipenv run \
ansible-playbook -v \
$ATL_DEPLOYMENT_REPOSITORY_CUSTOM_PARAMS \
-i $INV \
$PLAYBOOK \
2>&1 | tee --append $LOG_FILE

View File

@@ -2,21 +2,13 @@
set -e
# Amazon Linux 2 packages Ansible separately, so enable the repo
. /etc/os-release
if [[ $ID == 'amzn' ]]; then
amazon-linux-extras enable ansible2
fi
./bin/pacapt install --noconfirm \
ansible \
python-boto3 \
python-botocore
python3-dev \
python3-pip
pip3 install pipenv
pipenv sync
if [[ $1 == "--dev" ]]; then
./bin/pacapt install --noconfirm \
python3-dev python3-pip
pip3 install pipenv
pipenv sync --dev
fi