diff --git a/roles/ensure-java/tasks/main.yaml b/roles/ensure-java/tasks/main.yaml index a0d436629..2ae2332b4 100644 --- a/roles/ensure-java/tasks/main.yaml +++ b/roles/ensure-java/tasks/main.yaml @@ -1,3 +1,8 @@ +- name: Update apt cache + become: true + apt: + update_cache: yes + - name: Install JDK become: true package: