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
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:
parent
a82b5054ec
commit
35da3a0870
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user