Make venv use python3 instead of more specific version #60
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
renovate
waiting on upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
CCCHH/ansible-infra#60
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Make the venv in the
ansible_pullrole usepython3instead of a more specific version, so that then an OS and therefore Python upgrade then hopefully doesn't break the venv anymore. This issue has been encountered on upgrading a host to trixie.Setting the following should fix it: https://docs.ansible.com/projects/ansible/latest/collections/ansible/builtin/pip_module.html#parameter-virtualenv_python
Seems like this could work, tho internally in the venv the old Python version should stay a specific one, so just re-create the venv on major upgrade.