feat(task): do not try to update pip if manage_pip_packages_allow_break_system_packages is true
All checks were successful
test / Linting (push) Successful in 31s
test / Molecule tests (default, ubuntu2004) (push) Successful in 1m13s
test / Molecule tests (default, debian12) (push) Successful in 1m37s
test / Molecule tests (default, debian11) (push) Successful in 1m40s
test / Molecule tests (default, ubuntu2204) (push) Successful in 1m9s
test / Molecule tests (with_custom_packages, debian12) (push) Successful in 1m18s
test / Molecule tests (with_custom_packages, debian11) (push) Successful in 1m21s
test / Molecule tests (with_custom_packages, ubuntu2004) (push) Successful in 59s
test / Molecule tests (with_custom_packages, ubuntu2204) (push) Successful in 1m13s

It might fail on newer distribution (ubuntu 24+, debian 12+), because of the stupid PEP668
This commit is contained in:
Bertrand Lanson 2024-09-01 14:19:47 +00:00
parent a82b5054ec
commit 35da3a0870

View File

@ -9,4 +9,6 @@
- name: "Update pip to latest" - name: "Update pip to latest"
ansible.builtin.pip: ansible.builtin.pip:
name: pip name: pip
extra_args: "--upgrade{% if manage_pip_packages_allow_break_system_packages %} --break-system-packages{% endif %}" extra_args: "--upgrade"
when:
- not manage_pip_packages_allow_break_system_packages