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

9 lines
243 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'
loop: "{{ q('first_found', params, errors='ignore') }}"