You've already forked ansible-role-common
This time
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
- name: Include tasks only if one of the files exist, otherwise skip the task
|
- name: Include tasks only if one of the files exist, otherwise skip the task
|
||||||
include_tasks: "{{ lookup('first_found', params) }}"
|
include_tasks: '{{ item }}'
|
||||||
vars:
|
vars:
|
||||||
params:
|
params:
|
||||||
files:
|
files:
|
||||||
- '{{ ansible_os_family }}.yml'
|
- '{{ ansible_os_family }}.yml'
|
||||||
skip: true
|
loop: "{{ q('first_found', params, errors='ignore') }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user