zuul-jobs/roles/bindep/tasks/main.yaml
Albin Vass 6f2ff3f1b8 bindep: remove set_fact usage when converting string to list
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
2021-02-01 15:09:07 +01:00

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