ansible: Use jre-11-openjdk by default on SLES12SP5
authorKienan Stewart <kstewart@efficios.com>
Fri, 5 Jul 2024 17:16:39 +0000 (13:16 -0400)
committerKienan Stewart <kstewart@efficios.com>
Fri, 5 Jul 2024 17:16:39 +0000 (13:16 -0400)
Change-Id: I66f8acfa51f372b9c418230af3d3e5b138f903e0
Signed-off-by: Kienan Stewart <kstewart@efficios.com>
automation/ansible/roles/common-node/tasks/setup-Suse.yml

index 801dede9009216f33e94b2f0804fa12efd8964c4..833687300047bf26327cbe2fc2789551a19acf5b 100644 (file)
@@ -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"
This page took 0.023188 seconds and 4 git commands to generate.