Skip to content

Commit

Permalink
Merge pull request rciam#1 from ioigoume/rciam_metrics_role_pip
Browse files Browse the repository at this point in the history
Upgrade pip3 task
  • Loading branch information
lionick authored Apr 4, 2023
2 parents 8798bb6 + 1d067c0 commit bb592b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions roles/rciam-metrics/tasks/install-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- python3-venv
- build-essential
- python3-dev
- python3-pip
- nginx
state: present
install_recommends: no
Expand Down
8 changes: 8 additions & 0 deletions roles/rciam-metrics/tasks/install-common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@
skeleton: "/empty"
become: yes

- name: Upgrade pip3
pip:
name: pip
state: latest
virtualenv: "{{ metrics_path }}/.venv"
extra_args: --upgrade
become: yes

- name: Ensure metrics python requirements are installed in virtualenv
pip:
requirements: "{{ metrics_path }}/requirements.txt"
Expand Down

0 comments on commit bb592b3

Please sign in to comment.