java-oracle

Ansible role java-oracle

Build Status

An Ansible role to install the Oracle Java Development Kit or Java Runtime Environment. 8 and 9 early-access are supported.

DISCLAIMER

I DO NOT RECOMMEND TO USE THIS ANSIBLE ROLE ANYMORE! For my current projects, I use geerlingguy.java which suits pretty much all of my needs.

By installing any version of this role you have accepted the Oracle Binary Code License Agreement for Java SE and the Early Adopter Development License Agreement for Java SE.

Description

This ansible role is for installing java oracle by downloading the tar and unpacking it into a software folder under the users home. It should work for either Debian or Ubuntu, it has been tested for Ubuntu only. It does not handle MacOS or Windows (yet).

For all settings, look into the defaults folder.

Dependencies

  • ansible >= 2

Role Variables

All defaults are documented also in the defaults file.

variable required default description
java_product yes - one of jre or jdk
java_version yes - 7,8 (9 in the future)
java_oracle_jce_policy yes no install the java jce policy for java version 8
java_shell_profile no false add the JAVA_HOME with installation path to the user's shell profile?
java_oracle_profile_file no .profile name of the sheel profile file, e.g. .bash_profile
java_download_folder_remote no - when set, the file is downloaded to the installation host
java_update no set by this role The latest update version defined in that role is used. If this is not up to date (newer is required), or an older version is desired, set this.
java_build no set by this role e.g. b15, is usually part of the filename to download
java_arch no derived from machine fact and converted in e.g. x86, x86_64
java_os no derived from machine fact and converted in e.g. linux

Facts

variable description
java_install_dir the installation directory used for e.g. JAVA_HOME

License

GPLv3

About

Installer for java-oracle up to 1.8.

Install
ansible-galaxy install nwoetzel/ansible-role-java-oracle
GitHub repository
License
gpl-3.0
Downloads
396