Fix the Zulu repo removal.
This commit is contained in:
parent
703f19e543
commit
90dff095f7
|
@ -53,7 +53,12 @@
|
||||||
file:
|
file:
|
||||||
dest: /etc/apt/sources.list.d/zulu-openjdk.list
|
dest: /etc/apt/sources.list.d/zulu-openjdk.list
|
||||||
state: absent
|
state: absent
|
||||||
update_cache: yes
|
register: zulu_repo_removal
|
||||||
|
|
||||||
|
- name: Update the apt cache
|
||||||
|
apt:
|
||||||
|
update_cache: True
|
||||||
|
when: zulu_repo_removal is changed
|
||||||
|
|
||||||
- name: Install the OpenJDK that comes with the distribution
|
- name: Install the OpenJDK that comes with the distribution
|
||||||
apt: pkg=openjdk-{{ item.0 }}-{{ item[1] }} state={{ openjdk_pkg_state }} update_cache=yes cache_valid_time=3600
|
apt: pkg=openjdk-{{ item.0 }}-{{ item[1] }} state={{ openjdk_pkg_state }} update_cache=yes cache_valid_time=3600
|
||||||
|
|
Loading…
Reference in New Issue