Easy way of Java 10 Oracle JDK installation on Linux. Supports remote download, local download of official package, symlinking to lastest folder, alternatives settings.
Travis status: Code Climate status: Test Coverage status:
None.
Available variables are listed below, along with default values (see defaults/main.yml
):
force_java_install: False
Force to install Java on already installed system.
java_installer_force_overwrite: False
Force to overwrite Java installer.
java_installer_keep: False
Do not delete Java installer.
java_installer_local: False
Install local (form Ansible host) JDK/Server JRE instead of downloading on target machine.
java_type: jdk
Type of Java installer - JDK is: jdk, and Server JRE is: serverjre
java_version: 10
Java major version.
java_update: 0
Java minor version.
java_build: "10"
Java micro version.
java_platform: linux-x64
Java platform to install.
java_bins: [ 'javah', 'javap', 'jmap', 'extcheck', 'pack200', 'jrunscript', 'jinfo', 'jcontrol', 'jmc', 'keytool', 'schemagen', 'jjs', 'jvisualvm', 'policytool', 'rmid', 'wsgen', 'javaws', 'javadoc
Update alternatives on these binaries.
java_bins_priority: 9
Alternatives priority on these binaries.
java_usr_folder: /usr/java
Location of installed Java home.
java_latest_folder: /usr/java/latest
Where to link the latest folder.
java_download_base_url: http://download.oracle.com/otn-pub/java/jdk
Download link of Java installers.
None.
- hosts: all
roles:
- java-oracle-jdk10
MIT / BSD
This role was created in 2016-2017 by Kálmán Szalai - KAMI