Skip to content

Commit

Permalink
first found fix (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-rudnouski authored Mar 6, 2024
1 parent d25ac31 commit 0bc84ec
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions tasks/Linux/system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 0bc84ec

Please sign in to comment.