Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

roles/setup/vars/RedHat-8.yml hardcodes the python version #66

Open
alice-rc opened this issue Nov 2, 2023 · 1 comment
Open

roles/setup/vars/RedHat-8.yml hardcodes the python version #66

alice-rc opened this issue Nov 2, 2023 · 1 comment

Comments

@alice-rc
Copy link

alice-rc commented Nov 2, 2023

roles/setup/defaults/main.yml
minimum_python_version: 3.9

But then roles/setup/vars/RedHat-8.yml hardcodes the version to be 3.9 and has an issue when the python version in use is 3.11

system_pip_package: python39-pip              <- These lines
python_executable: python3.9                  <- These lines
pip_executable: pip3.9                        <- These lines
receptor_packages:
  - receptor
  - receptorctl
systemd_folder: "/usr/lib/systemd/system"

roles/setup/vars/RedHat.yml does not have this issue

receptor_packages:
  - receptor
  - receptorctl
systemd_folder: "/usr/lib/systemd/system"

But on a RHEL 8 family system (ansible_os_family = RedHat), there seems to be no way to override ansible_distribution_major_version, even if set using -e on the command line

@fosterseth
Copy link
Member

which version of python are you wishing to install (or is it already installed)?
can you override system_pip_package python_executable pip_executable with -e?

I realize we should probably do the python version checking task first, and then only do dnf installation of python if that check doesn't pass

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants