You've already forked ansible-role-common
10 lines
266 B
YAML
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') }}"
|