Duplicate centos 8/9 logic for Rocky Linux 9

Change-Id: I523718ea8ac0fc200854af29142d3ba6679f8bba
This commit is contained in:
Neil Hanlon 2022-08-04 11:25:09 -04:00
parent 93b35e0b68
commit b958c02eee
No known key found for this signature in database
GPG Key ID: 705BC21EC3C70F34

View File

@ -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