---
# tasks/main.yml
# define tasks here

# install packages
- name: Update apt cache.
  apt: update_cache=yes cache_valid_time=86400

- name: Ensure Java is installed.
  apt: "name={{ item }} state=installed"
  with_items: java_packages

