diff --git a/tasks/install_openjdk.yml b/tasks/install_openjdk.yml index 65b6f48..5e4dc4b 100644 --- a/tasks/install_openjdk.yml +++ b/tasks/install_openjdk.yml @@ -108,3 +108,10 @@ changed_when: false tags: - skip_ansible_lint + +- name: Correct java version selected /usr/lib/jvm/{{ java_open_jdk_home_dir }}/jre/bin/java" + alternatives: + name: java + path: "/usr/lib/jvm/{{ java_open_jdk_home_dir }}/jre/bin/java" + when: ansible_os_family == 'Debian' +