zuul-jobs/roles/ensure-java/tasks/main.yaml
James E. Blair 5ebf086442 Ensure-java: update apt cache
We should update the apt cache before attempting to install a package.

Change-Id: I6b1058e581815ceb194ca0cbb1c6e1b8e93928e6
2022-08-15 10:54:23 -07:00

11 lines
176 B
YAML

- name: Update apt cache
become: true
apt:
update_cache: yes
- name: Install JDK
become: true
package:
name: openjdk-{{ java_version }}-jdk
state: present