nwoetzel.java-oracle
Ansible Role: java-oracle
This is an Ansible role for installing the Oracle Java Development Kit (JDK) or Java Runtime Environment (JRE). Versions 8 and 9 (early access) are supported.
IMPORTANT
I DO NOT RECOMMEND USING THIS ANSIBLE ROLE ANYMORE! For my current projects, I'm using geerlingguy.java, which meets all my needs.
By using any version of this role, you agree to the Oracle Binary Code License Agreement for Java SE and the Early Adopter Development License Agreement for Java SE.
Overview
This Ansible role installs Oracle Java by downloading the tar file and unpacking it into a software folder in the user's home directory. It has been tested on Ubuntu and is meant for Debian or Ubuntu systems only. It does not yet support MacOS or Windows.
You can find all the settings in the defaults folder.
Requirements
- Ansible version 2 or higher
Variables
All default settings are also documented in the defaults file.
Variable | Required | Default | Description |
---|---|---|---|
java_product | Yes | - | Either 'jre' or 'jdk' |
java_version | Yes | - | Version 7 or 8 (9 available in the future) |
java_oracle_jce_policy | Yes | No | Install Java JCE policy for version 8 |
java_shell_profile | No | False | Add JAVA_HOME with the installation path to the user's shell profile? |
java_oracle_profile_file | No | .profile | Shell profile file name, e.g., .bash_profile |
java_download_folder_remote | No | - | If set, the file will be downloaded to the installation host |
java_update | No | Set by this role | The latest update version from the role. Set this if a newer or older version is needed. |
java_build | No | Set by this role | e.g., b15, usually part of the filename to download |
java_arch | No | Derived from machine facts | e.g., x86, x86_64 |
java_os | No | Derived from machine facts | e.g., linux |
Information
Variable | Description |
---|---|
java_install_dir | The installation directory used for JAVA_HOME |
License
ansible-galaxy install nwoetzel.java-oracle