This time

This commit is contained in:
2022-03-13 22:12:20 +13:00
parent 78e8cff430
commit 6fbdb54e7e

View File

@@ -1,8 +1,8 @@
---
- name: Include tasks only if one of the files exist, otherwise skip the task
include_tasks: "{{ lookup('first_found', params) }}"
include_tasks: '{{ item }}'
vars:
params:
files:
- '{{ ansible_os_family }}.yml'
skip: true
loop: "{{ q('first_found', params, errors='ignore') }}"