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:
Andrea Dell'Amico 2018-02-15 16:34:38 +01:00
parent 6d59fd862d
commit 65ed841553
1 changed files with 9 additions and 3 deletions

View File

@ -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' ]