From fc14afec55cc791e5bae73444d66797330c98475 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Wed, 25 Sep 2024 22:21:26 +0200 Subject: [PATCH] fix: fix first_found lookup --- tasks/main.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index ff1dbfc..f76d287 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -6,14 +6,13 @@ loop: "{{ packages_uninstall_pre + packages_uninstall_pre_extra }}" - name: Include OS specific tasks - ansible.builtin.include_tasks: "{{ lookup('first_found', params) }}" - vars: - params: + ansible.builtin.include_tasks: + file: "{{ item }}" + with_first_found: + - paths: + - "tasks" files: - "{{ ansible_os_family | lower }}.yml" - paths: - - "tasks" - errors: "ignore" skip: True - name: Uninstall packages