From f0b849e1c68d628769b58a1a8c61cb57e7b3d52a Mon Sep 17 00:00:00 2001 From: Buster Neece Date: Sat, 22 Oct 2022 06:23:57 -0500 Subject: [PATCH] Update Ansible install script. --- install.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/install.sh b/install.sh index 270730df9..eddf7f887 100644 --- a/install.sh +++ b/install.sh @@ -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}"