5ebf086442
We should update the apt cache before attempting to install a package. Change-Id: I6b1058e581815ceb194ca0cbb1c6e1b8e93928e6
11 lines
176 B
YAML
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
|