From b958c02eeed355484be12db736ed81a047f7d7c0 Mon Sep 17 00:00:00 2001 From: Neil Hanlon Date: Thu, 4 Aug 2022 11:25:09 -0400 Subject: [PATCH] Duplicate centos 8/9 logic for Rocky Linux 9 Change-Id: I523718ea8ac0fc200854af29142d3ba6679f8bba --- scripts/bootstrap-ansible.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/scripts/bootstrap-ansible.sh b/scripts/bootstrap-ansible.sh index d3bc9bd389..36033422a8 100755 --- a/scripts/bootstrap-ansible.sh +++ b/scripts/bootstrap-ansible.sh @@ -67,9 +67,17 @@ determine_distro # Install the python interpreters case ${DISTRO_ID} in rocky) - dnf -y install python38 python38-devel libselinux-python3 - PYTHON_EXEC_PATH="$(which python3.8)" - OSA_ANSIBLE_PYTHON_INTERPRETER="/usr/bin/python3" + case ${DISTRO_VERSION_ID} in + 8) + dnf -y install python38 python38-devel libselinux-python3 + PYTHON_EXEC_PATH="$(which python3.8)" + OSA_ANSIBLE_PYTHON_INTERPRETER="/usr/bin/python3" + ;; + 9) + dnf -y install python3 python3-devel libselinux-python3 + PYTHON_EXEC_PATH="$(which python3)" + ;; + esac ;; centos|rhel) case ${DISTRO_VERSION_ID} in