6f2ff3f1b8
This can cause problems where set_fact isn't able to override the variable when bindep is used with include_role and bindep_file is set as a variable in the include_role task. Change-Id: I3099f1802f2d30df1265a9abc11a53c923ed4832
18 lines
420 B
YAML
18 lines
420 B
YAML
---
|
|
- include_tasks: find.yaml
|
|
when: bindep_file is not defined
|
|
|
|
- include_tasks: find-bindep.yaml
|
|
when: bindep_file is defined
|
|
|
|
- include_tasks: install.yaml
|
|
when:
|
|
- bindep_file is defined
|
|
- bindep_command is not defined
|
|
|
|
- include_tasks: packages.yaml
|
|
loop: "{{ bindep_file is string | ternary([bindep_file], bindep_file) }}"
|
|
loop_control:
|
|
loop_var: zj_bindep_file
|
|
when: bindep_file is defined
|