KAMI911.java_oracle_jdk8
Ansible Role: Installs Java 8 JDK or Server JRE
This role installs Java 8 JDK on Linux systems.
Travis status:
Code Climate status:
Test Coverage status:
Table of Contents
- Requirements
- Installation
- Role Variables
- Dependencies
- Example Playbook
- Licensing
- Author Information
- Support
- Contributing
- Donation
Requirements
There are no specific requirements.
Installation
To install the role, use this command:
ansible-galaxy install kami911.java-oracle-jdk8
Role Variables
Here are the available variables you can set, along with their default values (see defaults/main.yml
):
force_java_install
: False
Set to True to install Java even if it's already installed.java_installer_force_overwrite
: False
Set to True to overwrite the Java installer if it exists.java_installer_keep
: False
Set to True to keep the Java installer file.java_installer_local
: False
If True, install from a local copy instead of downloading it.java_type
: jdk
Choose betweenjdk
for Java Development Kit andserver-jre
for Server JRE.java_version
: 8
The major version of Java.java_update
: 201
The minor version of Java.java_build
: "09"
The micro version of Java.java_platform
: linux-x64
Specify the target platform for installation.java_bins
: [ 'javah', 'javap', 'jmap', ... ]
List of binaries to update alternatives for.java_bins_priority
: 9
The priority for the alternatives for the binaries.java_usr_folder
: /usr/java
The folder where Java will be installed.java_latest_folder
: /usr/java/latest
Folder for linking the latest version.java_download_base_url
: http://download.oracle.com/otn-pub/java/jdk
Base URL for downloading Java installers.
Dependencies
There are no dependencies for this role.
Example Playbook
Here's an example of a playbook that uses this role:
- hosts: all
roles:
- java-oracle-jdk8
Licensing
This role and its documentation are licensed under the MIT/BSD terms. You can find the full license in the LICENSE file.
Author Information
This role was created by Kálmán Szalai (KAMI) between 2016 and 2018.
Support
If you have questions, feel free to reach out. For bugs or feature requests, please file an issue.
Using as a submodule in an AWX playbook
Add as a submodule
git submodule add --force [email protected]:KAMI911/ansible-role-java-oracle-jdk8.git roles/java-oracle-jdk8
Update the submodule
To update only this submodule:
git submodule update --remote roles/java-oracle-jdk8/
To update all submodules:
git submodule foreach git pull origin master
Contributing
You can help improve this role by sending patches, testing, reporting bugs, or updating documentation. Every contribution is welcome!
For more information, please refer to the contributing chapter.
Fork me on GitHub
SSH:
[email protected]:KAMI911/ansible-role-java-oracle-jdk8.git
HTTPS:
https://github.com/KAMI911/ansible-role-java-oracle-jdk8
To add the original repository as an upstream:
git remote add upstream https://github.com/KAMI911/ansible-role-java-oracle-jdk8.git
You can pull the latest updates from the original repository:
git fetch --all
git pull upstream HEAD
Donation
If you find this role helpful, please consider making a donation:
Ansible role for configuring Oracle Java 8 or Server JRE with local installation support
ansible-galaxy install KAMI911.java_oracle_jdk8