2015-05-28 11:32:57 +02:00
|
|
|
---
|
2016-09-30 18:36:33 +02:00
|
|
|
- block:
|
|
|
|
- name: Add the openjdk ppa. To have openjdk 8/9 on precise and trusty
|
|
|
|
apt_repository: repo='{{ openjdk_ppa }}' update_cache=yes
|
|
|
|
|
|
|
|
- name: install OpenJDK JRE
|
2017-08-28 19:20:50 +02:00
|
|
|
apt: pkg=openjdk-{{ item.0 }}-{{ item[1] }} state={{ openjdk_pkg_state }} update_cache=yes cache_valid_time=3600
|
2016-09-30 18:36:33 +02:00
|
|
|
with_nested:
|
|
|
|
- '{{ openjdk_version }}'
|
|
|
|
- '{{ openjdk_pkgs }}'
|
|
|
|
# - [ 'jre', 'jre-headless', 'jdk' ]
|
|
|
|
notify: Set the default OpenJDK
|
2015-05-28 11:32:57 +02:00
|
|
|
|
2016-09-30 18:36:33 +02:00
|
|
|
- name: Set fact jdk_installed
|
|
|
|
set_fact: jdk_installed=true
|
2015-05-28 11:32:57 +02:00
|
|
|
|
2016-09-30 18:36:33 +02:00
|
|
|
tags: [ 'jdk', 'openjdk' ]
|