From 5ebf0864426802b40cf6b5a2667bc70075b8e939 Mon Sep 17 00:00:00 2001 From: "James E. Blair" Date: Mon, 15 Aug 2022 10:53:39 -0700 Subject: [PATCH] Ensure-java: update apt cache We should update the apt cache before attempting to install a package. Change-Id: I6b1058e581815ceb194ca0cbb1c6e1b8e93928e6 --- roles/ensure-java/tasks/main.yaml | 5 +++++ 1 file changed, 5 insertions(+) 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: