Do not set the default jdk using alternatives.

This commit is contained in:
Andrea Dell'Amico 2020-07-31 17:06:37 +02:00
parent 223e975ded
commit d40a337f9f
2 changed files with 2 additions and 1 deletions

View File

@ -2,4 +2,5 @@
- name: Set the default OpenJDK
alternatives: name={{ item }} path=/usr/lib/jvm/java-{{ openjdk_el_default_version }}-openjdk/bin/{{ item }}
with_items: '{{ openjdk_commands }}'
ignore_errors: True
when: openjdk_install

View File

@ -5,7 +5,7 @@
with_nested:
- '{{ openjdk_el_version }}'
- '{{ openjdk_el_pkgs }}'
notify: Set the default OpenJDK
#notify: Set the default OpenJDK
- name: Set fact jdk_installed
set_fact: jdk_installed=true