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