An Ansible role to setup Oracle Java Development Kit.
DISCLAIMER: usage of any version of this role implies you have accepted the
Oracle Binary Code License Agreement for Java SE.
Family |
Distribution |
Version |
Test Status |
Debian |
Debian |
Jessie |
|
Debian |
Ubuntu |
Precise |
|
Debian |
Ubuntu |
Yakkety |
|
Debian |
Ubuntu |
Xenial |
|
Debian |
Ubuntu |
Trusty |
|
Debian |
Ubuntu |
Vivid |
|
Debian |
Ubuntu |
Wily |
|
RedHat |
Centos |
7 |
|
variable |
description |
oracle_java_installed |
fact set by this role that contains a flag that indicates if Java is installed on the host. |
oracle_java_version_installed |
fact set by this role that contains the string of the Java version installed in the system. |
variable |
default |
description |
debug |
undefined |
flag to make role more verbose. |
oracle_java_set_as_default |
yes |
make the newly installed Java the default runtime environment. |
oracle_java_state |
latest |
the package state (see Ansible apt module for more information). |
oracle_java_version |
8 |
the Oracle JDK version to be installed. |
oracle_java_version_string |
1.{{ oracle_java_version }}.0_u{{ oracle_java_version_update }} |
the Java version string to verify installation against. |
oracle_java_os_supported |
- |
role internal variable to check if a OS family is supported or not. |
variable |
default |
description |
oracle_java_cache_valid_time |
3600 |
the amount of time in seconds the apt cache is valid. |
oracle_java_state |
latest |
the package state (see Ansible apt module for more information). |
oracle_java_home |
/usr/lib/jvm/java-{{ oracle_java_version }}-oracle |
the location of the Java home directory. |
variable |
default |
description |
oracle_java_dir_source |
/usr/local/src |
directory where to store the RPM files. |
oracle_java_home |
/usr/java/jdk1.{{ oracle_java_version }}.0_{{ oracle_java_version_update }} |
the location of the Java home directory. |
oracle_java_rpm_validate_certs |
yes |
flag to indicate if you want SSL certificate validation. |
- hosts: servers
roles:
- role: ansiblebit.oracle-java,
oracle_java_set_as_default: yes
Use --skip-tags=debug
if you want to suppress debug information.