From 728b52a6ff3838a9cf020fe790ee0d50a5e0dc4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 4 May 2021 18:48:16 +0200 Subject: [PATCH] Use /usr/bin/python3 on rhelish 9+ (#74547) The /usr/libexec/platform-python symbolic link is just a backwards compatibility shim there. See https://gitlab.com/redhat/centos-stream/rpms/python3.9/-/commit/ce226d00fa630afff06b0b6a7058d3038d9f7a7f --- changelogs/fragments/74547-use-python3-on-rhel-9.yaml | 2 ++ lib/ansible/config/base.yml | 1 + 2 files changed, 3 insertions(+) create mode 100644 changelogs/fragments/74547-use-python3-on-rhel-9.yaml diff --git a/changelogs/fragments/74547-use-python3-on-rhel-9.yaml b/changelogs/fragments/74547-use-python3-on-rhel-9.yaml new file mode 100644 index 00000000000..304336e547e --- /dev/null +++ b/changelogs/fragments/74547-use-python3-on-rhel-9.yaml @@ -0,0 +1,2 @@ +minor_changes: +- On RHEL 9, CentOS Stream 9 etc., use /usr/bin/python3 as the default interpreter; /usr/libexec/platform-python is just a backwards-compatibility symbolic link there. diff --git a/lib/ansible/config/base.yml b/lib/ansible/config/base.yml index d67183caee5..938969873c8 100644 --- a/lib/ansible/config/base.yml +++ b/lib/ansible/config/base.yml @@ -1486,6 +1486,7 @@ INTERPRETER_PYTHON_DISTRO_MAP: centos: &rhelish '6': /usr/bin/python '8': /usr/libexec/platform-python + '9': /usr/bin/python3 debian: '8': /usr/bin/python '10': /usr/bin/python3