From 16ff2531e46d34234b623d445badeb1448c60df5 Mon Sep 17 00:00:00 2001 From: Gage Hugo Date: Wed, 17 Jun 2020 15:30:39 -0500 Subject: [PATCH] Don't rely on pip and tox installed on zuul node Change-Id: I3b715a4cc5ae064b458694ab98feb2b6cc226e65 --- zuul.d/playbooks/lint.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/zuul.d/playbooks/lint.yml b/zuul.d/playbooks/lint.yml index 3b27a64cc..f0fc13022 100644 --- a/zuul.d/playbooks/lint.yml +++ b/zuul.d/playbooks/lint.yml @@ -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