From 6fbdb54e7e1be2191af91bd175762e75ba06b3ae Mon Sep 17 00:00:00 2001 From: Aaron Guise Date: Sun, 13 Mar 2022 22:12:20 +1300 Subject: [PATCH] This time --- tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index f204af3..8ee4233 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -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') }}"