Ensure pip is installed for propose-update-constraints

Pip is used by this task, make sure ensure-pip is used so it is
present.

While here, install git-review to a venv and symlink it globally to
keep things separate.

Change-Id: If6b1abd2545c68f727bddc5317797236f451b67c
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Signed-off-by: Ian Wienand <iwienand@redhat.com>
This commit is contained in:
Sean McGinnis 2020-06-16 15:48:48 -05:00 committed by Ian Wienand
parent 5cdba233fb
commit 9c91006304
2 changed files with 19 additions and 1 deletions

View File

@ -1,7 +1,23 @@
- hosts: all
pre_tasks:
- name: Ensure pip
include_role:
name: ensure-pip
- name: Install git-review
command: pip3 install git-review
pip:
name: git-review
virtualenv: /opt/git-review
virtualenv_command: '{{ ensure_pip_virtualenv_command }}'
become: yes
- name: Link git-review
file:
src: /opt/git-review/bin/git-review
dest: /usr/local/bin/git-review
owner: root
group: root
state: link
become: yes
- name: Copy scripts to the script dir on the node

View File

@ -1,4 +1,6 @@
- hosts: all
roles:
- bindep
- ensure-pip
- revoke-sudo