Files
ansible-role-common/tasks/main.yml

10 lines
266 B
YAML
Raw Normal View History

2016-06-29 12:34:37 +12:00
---
- name: Include tasks only if one of the files exist, otherwise skip the task
2022-04-03 13:20:47 +12:00
include_tasks: "{{ item }}"
vars:
params:
files:
2022-04-03 13:20:47 +12:00
- "{{ ansible_os_family }}.yml"
- "common.yml"
2022-03-13 22:12:20 +13:00
loop: "{{ q('first_found', params, errors='ignore') }}"