From 56768cd6ffacaf69d9a4f17c96bbc56f3f1b0502 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Tue, 8 Mar 2022 22:51:57 +0300 Subject: [PATCH] Fix(python-packages): There is no `python-openssl` in Debian 11 --- playbooks/roles/python-packages/tasks/main.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/python-packages/tasks/main.yml b/playbooks/roles/python-packages/tasks/main.yml index 1ba4bdb..372d92b 100644 --- a/playbooks/roles/python-packages/tasks/main.yml +++ b/playbooks/roles/python-packages/tasks/main.yml @@ -8,13 +8,14 @@ name: ['patchelf', # for auditwheel 'python', 'python2.7', 'python3', "{{ python_pip_pkg }}", 'python3-pip', 'python-setuptools', 'python3-setuptools', - 'python-gdbm', 'python-openssl', 'python3-openssl', + 'python-gdbm', "{{ python_openssl_pkg }}", '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 %}" + - python_pip_pkg: "python-pip{% if ansible_facts.distribution_major_version in ['9', '10'] %}{% elif ansible_facts.distribution_major_version == '11' %}-whl{% endif %}" + - python_openssl_pkg: "{% if ansible_facts.distribution_major_version in ['9', '10'] %}python-openssl{% elif ansible_facts.distribution_major_version == '11' %}python3-openssl{% endif %}" register: python when: ansible_facts.os_family == 'Debian' -- 2.39.5