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