From bd01ce6ffab9f9ed1dc617f2d44ffda29b9753d0 Mon Sep 17 00:00:00 2001 From: FrankApiyo Date: Thu, 5 Dec 2024 09:54:27 +0300 Subject: [PATCH] Upgrade pip to fix dependency installation error --- tasks/install.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tasks/install.yml b/tasks/install.yml index 0abc107..0a260c8 100644 --- a/tasks/install.yml +++ b/tasks/install.yml @@ -132,6 +132,13 @@ become: true become_user: "{{ django_system_user }}" +- name: Install a custom pip version + shell: "{{ django_venv_path }}/bin/pip3 install '{{ custom_pip_version }}'" + become: true + become_user: "{{ django_system_user }}" + when: + - custom_pip_version is defined and custom_pip_version != "" + - name: Install Python packages using pip ansible.builtin.pip: state: present