From 4ce2d40d686e2d7605df988e55f5b475e87ccf85 Mon Sep 17 00:00:00 2001 From: Paul Belanger <pabelanger@redhat.com> Date: Sat, 30 Mar 2019 12:27:36 -0400 Subject: [PATCH] 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> --- roles/bindep/tasks/main.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/bindep/tasks/main.yaml b/roles/bindep/tasks/main.yaml index e4bef7481..978518f8b 100644 --- a/roles/bindep/tasks/main.yaml +++ b/roles/bindep/tasks/main.yaml @@ -6,7 +6,9 @@ when: bindep_file is defined - include: install.yaml - when: bindep_command is not defined + when: + - bindep_file is defined + - bindep_command is not defined - name: Define bindep_run fact set_fact: