You've already forked ansible-role-common
Use first found - Skipping if file not found
This commit is contained in:
@@ -1,2 +1,8 @@
|
||||
---
|
||||
- include: "{{ ansible_os_family }}.yml"
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user