From 24570f2e27c5205f92ffe6dc0278a41fa4fb685b Mon Sep 17 00:00:00 2001 From: Vlad Zolotarov Date: Wed, 17 Jan 2024 16:25:47 -0500 Subject: [PATCH] Node/Loader Roles: Debian.yml: remove explicit update-java-alternatives call There is no need to call update-java-alternatives explicitly since openjdk-8-jre-headless .deb package invokes it as a post-install action. Tested on Ubuntu 20.04 on both x86 and on arm64 HW. Fixes #325 Signed-off-by: Vlad Zolotarov --- ansible-scylla-loader/tasks/Debian.yml | 6 ------ ansible-scylla-node/tasks/Debian.yml | 5 ----- 2 files changed, 11 deletions(-) diff --git a/ansible-scylla-loader/tasks/Debian.yml b/ansible-scylla-loader/tasks/Debian.yml index d8ba48e9..d550eed3 100644 --- a/ansible-scylla-loader/tasks/Debian.yml +++ b/ansible-scylla-loader/tasks/Debian.yml @@ -57,12 +57,6 @@ force_apt_get: yes become: true -- name: Correct java version selected - alternatives: - name: java - path: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java - become: true - - name: install scylla-tools-core|scylla-enterprise-tools-core block: - package: diff --git a/ansible-scylla-node/tasks/Debian.yml b/ansible-scylla-node/tasks/Debian.yml index 40d5057c..8cec5bb2 100644 --- a/ansible-scylla-node/tasks/Debian.yml +++ b/ansible-scylla-node/tasks/Debian.yml @@ -69,11 +69,6 @@ state: present force_apt_get: yes - - name: Correct java version selected - alternatives: - name: java - path: /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java - - name: Install Scylla packages include_tasks: Debian_install.yml become: true