Skip to content

Commit 7230bd2

Browse files
committed
Move upgrade of pip to the Virtualenv.
1 parent 567f764 commit 7230bd2

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

roles/base/tasks/main.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,3 @@
2828
tags:
2929
- packages
3030
- packages.security
31-
32-
- name: Upgrade pip
33-
ansible.builtin.pip: name=pip state=latest
34-
tags:
35-
- packages
36-
- skip_ansible_lint

roles/web/tasks/setup_virtualenv.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@
2727
ansible.builtin.command: virtualenv -p {{ virtualenv_python_version }} {{ virtualenv_path }}
2828
creates={{ virtualenv_path }}/bin/activate
2929

30+
- name: Upgrade pip
31+
ansible.builtin.pip:
32+
name: pip
33+
state: latest
34+
tags:
35+
- packages
36+
3037
- name: Ensure gunicorn and pycurl are installed in the virtualenv
3138
ansible.builtin.pip:
3239
virtualenv: "{{ virtualenv_path }}"

0 commit comments

Comments
 (0)