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