From 184f036fd876bf6b889ad7b7f9b6379562f9bb53 Mon Sep 17 00:00:00 2001 From: Tristan Cacqueray Date: Wed, 22 Nov 2017 13:53:25 +0000 Subject: [PATCH] bindep: fix install bindep_command fact name After installing bindep, the role should set the bindep_command fact instead of bindep_found_command. Otherwise the role fail later: Task: Define bindep_command fact The error was: 'bindep_command' is undefined Change-Id: I11a21c9678c75b7887a8a58c25925dc87e7c9315 --- roles/bindep/tasks/install.yaml | 4 ++-- roles/bindep/tasks/main.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/roles/bindep/tasks/install.yaml b/roles/bindep/tasks/install.yaml index 1f2307251..eaf6407f3 100644 --- a/roles/bindep/tasks/install.yaml +++ b/roles/bindep/tasks/install.yaml @@ -11,6 +11,6 @@ name: bindep virtualenv: "{{ bindep_temp_dir.path }}/venv" -- name: Define bindep_found_command +- name: Define bindep_command set_fact: - bindep_found_command: "{{ bindep_temp_dir.path }}/venv/bin/bindep" + bindep_command: "{{ bindep_temp_dir.path }}/venv/bin/bindep" diff --git a/roles/bindep/tasks/main.yaml b/roles/bindep/tasks/main.yaml index d7b70c3ea..e4bef7481 100644 --- a/roles/bindep/tasks/main.yaml +++ b/roles/bindep/tasks/main.yaml @@ -8,7 +8,7 @@ - include: install.yaml when: bindep_command is not defined -- name: Define bindep_command fact +- name: Define bindep_run fact set_fact: bindep_run: "{{ bindep_command }} -b -f {{ bindep_file }} {{ bindep_profile }}" when: bindep_file is defined