Files
dc-deployments-automation/bin/install-ansible
2019-10-04 11:39:43 +10:00

24 lines
492 B
Bash
Executable File

#!/bin/bash
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
if [[ $1 == "--dev" ]]; then
./bin/pacapt install --noconfirm \
python-dev python-pip \
python3-dev python3-pip
pip install pipenv
pipenv sync --dev
fi