When we use the openjdk from the Zulu repo, remove the openjdk distribution packages.

This commit is contained in:
Andrea Dell'Amico 2019-05-07 12:02:15 +02:00
parent 95856c83ad
commit 3826c28cf3
1 changed files with 7 additions and 0 deletions

View File

@ -69,5 +69,12 @@
- name: Remove the Oracle JDK packages
apt: pkg={{ openjdk_oracle_jdk_pkgs }} state=absent cache_valid_time=3600
- name: Remove the OpenJDK packages fthat come with the distribution when we use the Zulu repository
apt: pkg=openjdk-{{ item.0 }}-{{ item[1] }} state=absent update_cache=yes cache_valid_time=3600
with_nested:
- '{{ openjdk_version }}'
- '{{ openjdk_pkgs }}'
when: openjdk_zulu_repo_install
tags: [ 'jdk', 'openjdk' ]