manage_pip_packages/tasks/prerequisites.yml
Bertrand Lanson 35da3a0870
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
feat(task): do not try to update pip if manage_pip_packages_allow_break_system_packages is true
It might fail on newer distribution (ubuntu 24+, debian 12+), because of the stupid PEP668
2024-09-01 14:19:47 +00:00

15 lines
408 B
YAML

---
# task/prerequisites file for manage_pip_packages
- name: "Install python3 and pip"
ansible.builtin.include_role:
name: ednz_cloud.manage_apt_packages
vars:
manage_apt_packages_list: "{{ manage_pip_packages_required_packages }}"
- name: "Update pip to latest"
ansible.builtin.pip:
name: pip
extra_args: "--upgrade"
when:
- not manage_pip_packages_allow_break_system_packages