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