From 5553200f2463bc832fc88f1ce0ab098e30093a9a Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 8 Mar 2022 22:27:32 +0300 Subject: [PATCH] Fix(python-packages): Install `python-pip` In Debian 11 the package is named `python-pip-whl`. --- playbooks/roles/python-packages/tasks/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/python-packages/tasks/main.yml b/playbooks/roles/python-packages/tasks/main.yml index 52381d3..1ba4bdb 100644 --- a/playbooks/roles/python-packages/tasks/main.yml +++ b/playbooks/roles/python-packages/tasks/main.yml @@ -6,13 +6,15 @@ cache_valid_time: 3600 install_recommends: no name: ['patchelf', # for auditwheel - 'python', 'python2.7', 'python3', 'python-pip', 'python3-pip', - 'python-setuptools', 'python3-setuptools', + 'python', 'python2.7', 'python3', "{{ python_pip_pkg }}", + 'python3-pip', 'python-setuptools', 'python3-setuptools', 'python-gdbm', 'python-openssl', 'python3-openssl', 'python-is-python2', ] state: latest update_cache: yes + vars: + python_pip_pkg: "python-pip{% if ansible_facts.distribution_major_version in ['9', '10'] %}{% elif ansible_facts.distribution_major_version == '11' %}-whl{% endif %}" register: python when: ansible_facts.os_family == 'Debian' -- 2.39.5