Skip to content

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

Open
@alice-rc

Description

@alice-rc

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions