
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
17 lines
380 B
YAML
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"
|