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

9 lines
205 B
YAML

---
- name: Include tasks only if one of the files exist, otherwise skip the task
include_tasks:
file: "{{ item }}"
with_first_found:
files:
- "{{ ansible_os_family }}.yml"
skip: True