From: Kienan Stewart Date: Fri, 5 Jul 2024 17:16:39 +0000 (-0400) Subject: ansible: Use jre-11-openjdk by default on SLES12SP5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3e7df4ef34136f349a692eb8f9f2d99e36caca3a;p=lttng-ci.git ansible: Use jre-11-openjdk by default on SLES12SP5 Change-Id: I66f8acfa51f372b9c418230af3d3e5b138f903e0 Signed-off-by: Kienan Stewart --- diff --git a/automation/ansible/roles/common-node/tasks/setup-Suse.yml b/automation/ansible/roles/common-node/tasks/setup-Suse.yml index 801dede..8336873 100644 --- a/automation/ansible/roles/common-node/tasks/setup-Suse.yml +++ b/automation/ansible/roles/common-node/tasks/setup-Suse.yml @@ -38,3 +38,9 @@ dest: '/opt/apache/maven' state: 'link' src: '/opt/apache/apache-maven-3.9.6' + +- name: Set default java runtime + when: ansible_distribution_major_version == "12" + community.general.alternatives: + name: java + path: "/usr/lib64/jvm/jre-11-openjdk/bin/java"