zuul-jobs/roles/bindep/tasks/install.yaml
Tristan Cacqueray 184f036fd8 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
2017-12-05 08:52:31 +00:00

17 lines
380 B
YAML

- name: create temp dir for bindep
tempfile:
state: directory
prefix: bindep
register: bindep_temp_dir
notify:
- remove bindep temp dir
- name: install bindep into temporary venv
pip:
name: bindep
virtualenv: "{{ bindep_temp_dir.path }}/venv"
- name: Define bindep_command
set_fact:
bindep_command: "{{ bindep_temp_dir.path }}/venv/bin/bindep"