Files
ansible-role-common/tasks/main.yml
2022-03-14 22:24:49 +13: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') }}"