Files
ansible-role-common/tasks/main.yml
2022-04-03 13:20:47 +12:00

10 lines
266 B
YAML

---
- name: Include tasks only if one of the files exist, otherwise skip the task
include_tasks: "{{ item }}"
vars:
params:
files:
- "{{ ansible_os_family }}.yml"
- "common.yml"
loop: "{{ q('first_found', params, errors='ignore') }}"