From 0bc84ec1e2444aea67d23590fb99a258a41c9483 Mon Sep 17 00:00:00 2001 From: Dzmitry Rudnouski Date: Wed, 6 Mar 2024 16:49:40 +0300 Subject: [PATCH] first found fix (#143) --- tasks/Linux/system.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tasks/Linux/system.yml b/tasks/Linux/system.yml index 435eaba2..7a6ace21 100644 --- a/tasks/Linux/system.yml +++ b/tasks/Linux/system.yml @@ -14,11 +14,13 @@ when: transport != 'repositories' - name: 'Perform {{ java_binary_type }} install' - include_tasks: '{{ install_task }}' + ansible.builtin.include_tasks: + file: "{{ item }}" with_first_found: - - 'install/{{ java_distribution }}_{{ java_binary_type }}.yml' - - 'install/{{ java_binary_type }}.yml' - - 'install/{{ ansible_os_family }}.yml' - loop_control: - loop_var: install_task + - files: + - '{{ java_distribution }}_{{ java_binary_type }}.yml' + - '{{ java_binary_type }}.yml' + - '{{ ansible_os_family }}.yml' + paths: + - tasks/Linux/install become: true