From e3b99afe7bafd20b5b80cc95e29bc32bb94c3efe Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Thu, 26 Sep 2024 14:34:45 +0200 Subject: [PATCH] Do not install pip via pip in Ubuntu > 22.04. --- tasks/py3_deb.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/py3_deb.yml b/tasks/py3_deb.yml index 0ddf578..c96a65f 100644 --- a/tasks/py3_deb.yml +++ b/tasks/py3_deb.yml @@ -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: