Do not install pip via pip in Ubuntu > 22.04.

This commit is contained in:
Andrea Dell'Amico 2024-09-26 14:34:45 +02:00
parent 4a4d241fc1
commit e3b99afe7b
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@
- name: Manage the python pip packages
tags: [python, py3_env, py3_env_pkgs, python3, py3_pip]
when: py3_env_install
when:
- py3_env_install
- ansible_distribution_version is version_compare('22.04', '<=')
block:
- name: Remove info of deb python packages so that they can be upgraded using pip
file: