forked from ISTI-ansible-roles/ansible-roles
openjdk: Rebuilt /etc/ssl/certs/java/cacerts after the installation. The package fails to do it. See https://support.d4science.org/issues/11176
This commit is contained in:
parent
6d59fd862d
commit
65ed841553
|
@ -8,10 +8,16 @@
|
|||
with_nested:
|
||||
- '{{ openjdk_version }}'
|
||||
- '{{ openjdk_pkgs }}'
|
||||
# - [ 'jre', 'jre-headless', 'jdk' ]
|
||||
notify: Set the default OpenJDK
|
||||
register: openjdk_installed
|
||||
|
||||
- name: Set fact jdk_installed
|
||||
set_fact: jdk_installed=true
|
||||
- name: Rebuild the Ubuntu keystore
|
||||
command: update-ca-certificates --fresh
|
||||
when: ( openjdk_installed | changed )
|
||||
|
||||
- name: Set the default OpenJDK
|
||||
shell: update-java-alternatives -s java-1.{{ item }}.0-openjdk-amd64
|
||||
with_items: '{{ openjdk_default }}'
|
||||
when: ( openjdk_installed | changed )
|
||||
|
||||
tags: [ 'jdk', 'openjdk' ]
|
||||
|
|
Loading…
Reference in New Issue