zuul-jobs/roles/bindep/tasks/install.yaml
Jamie Lennox 4ac946c4f2 Pass correct variables to install bindep
The result of creating a temporary directory for bindep is a dictionary
of data include mode, uuid, and other things. When installing bindep
into that new directory we only want to specify the path to that dir.

Change-Id: If98f87ff44356911b78984eb884f7cd65660cebb
Signed-off-by: Jamie Lennox <jamielennox@gmail.com>
2017-09-05 10:40:08 +10:00

17 lines
392 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_found_command
set_fact:
bindep_found_command: "{{ bindep_temp_dir.path }}/venv/bin/bindep"