Don't rely on pip and tox installed on zuul node

Change-Id: I3b715a4cc5ae064b458694ab98feb2b6cc226e65
This commit is contained in:
Gage Hugo 2020-06-17 15:30:39 -05:00 committed by Andrii Ostapenko
parent 16414767e0
commit 16ff2531e4

View File

@ -27,10 +27,16 @@
path: "{{ ansible_user_dir }}/src/{{ zuul.project.canonical_name }}/yamllint.conf"
register: yamllintconf
- name: Install jq
- name: Install jq and pip
apt:
pkg:
- jq
- python3-pip
become: yes
when: yamllintconf.stat.exists == True
- name: Install tox
shell: pip3 install -U tox
become: yes
when: yamllintconf.stat.exists == True