zuul-jobs/roles/bindep/tasks/main.yaml
Ian Wienand b2ae863f50
Add names to include tasks
Latest ansible-lint is finding this.  It seems reasonable enough to
ensure the task is named; it's always nice to have context about what
is happening as you read the file.

Change-Id: Ia7e490aaba99da9694a6f3fdb1bca9838221b30a
2022-11-07 10:37:53 +11:00

22 lines
536 B
YAML

---
- name: Include find tasks
include_tasks: find.yaml
when: bindep_file is not defined
- name: Include bindep tasks
include_tasks: find-bindep.yaml
when: bindep_file is defined
- name: Include install tasks
include_tasks: install.yaml
when:
- bindep_file is defined
- bindep_command is not defined
- name: Include package tasks
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