Ignore errors from update-java-alternatives

This commit is contained in:
Andrea Dell'Amico 2023-06-23 13:45:49 +02:00
parent 717c1b2350
commit fe041efcb6
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 1 additions and 0 deletions

View File

@ -70,6 +70,7 @@
- name: Set the default OpenJDK
shell: update-java-alternatives -s java-1.{{ openjdk_default }}.0-openjdk-amd64
when: openjdk_installed is changed or openjdk_force_default
ignore_errors: true
- name: Set the correct value for jdk_java_home when we are installing the distribution OpenJDK
set_fact: