Oops, trying to include tasks not vars :(

This commit is contained in:
2022-03-13 22:03:37 +13:00
parent 630c999fe4
commit c59b7d4c30

View File

@@ -1,9 +1,7 @@
---
- name: Include tasks only if one of the files exist, otherwise skip the task
include_vars: "{{ lookup('first_found', params) }}"
include_tasks: "{{ lookup('first_found', params) }}"
vars:
params:
files:
- '{{ ansible_os_family }}.yml'
paths:
- 'vars'