Update Ansible install script.

This commit is contained in:
Buster Neece 2022-10-22 06:23:57 -05:00
parent d70f8f786f
commit f0b849e1c6
No known key found for this signature in database
GPG Key ID: F1D2E64A0005E80E
1 changed files with 3 additions and 5 deletions

View File

@ -21,13 +21,11 @@ fi
sudo apt-get update
sudo apt-get install -q -y software-properties-common
if [[ $DISTRIB_CODENAME == "focal" ]]; then
if [[ $DISTRIB_CODENAME == "focal" || $DISTRIB_CODENAME == "jammy" ]]; then
sudo apt-get install -q -y ansible python3-pip python3-mysqldb
else
sudo add-apt-repository -y ppa:ansible/ansible
sudo apt-get update
sudo apt-get install -q -y python2.7 python-pip python-mysqldb ansible
echo "Ansible installation is only supported on Ubuntu Focal (20.04) or Jammy (22.04)."
exit 0
fi
APP_ENV="${APP_ENV:-production}"