zuul-jobs/roles/bindep/tasks/main.yaml
Paul Belanger 4ce2d40d68 Don't create bindep venv if bindep_file is not found
There is no need to install bindep, if we don't have a bindep file.

Change-Id: I33685e4905ceff23a6b772163ffce1a76143d2eb
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2019-03-30 12:27:36 -04:00

20 lines
434 B
YAML

---
- include: find.yaml
when: bindep_file is not defined
- include: find-bindep.yaml
when: bindep_file is defined
- include: install.yaml
when:
- bindep_file is defined
- bindep_command is not defined
- name: Define bindep_run fact
set_fact:
bindep_run: "{{ bindep_command }} -b -f {{ bindep_file }} {{ bindep_profile }}"
when: bindep_file is defined
- include: packages.yaml
when: bindep_file is defined