zuul-jobs/roles/bindep/tasks/main.yaml
Michal 522a78385a Allow bindep role to read from more then one bindep file
Extend bindep role to be able to install packages from
multiple paths at once. This behavior is fully compatible
with current implementation, however it allows to pass
number of bindep file paths.

Change-Id: I70d42f25837ff282aad534f9ead965d12858ac9b
2020-11-02 17:17:47 +01:00

23 lines
517 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
- name: Convert bindep_file to list
set_fact:
bindep_file: "{{ [bindep_file] }}"
when: bindep_file is defined and bindep_file is string
- include_tasks: packages.yaml
loop: "{{ bindep_file }}"
loop_control:
loop_var: zj_bindep_file
when: bindep_file is defined