KAMI911.java_open_jdk11
Ansible Role: Installs Java 11 Open JDK
This guide shows a simple way to install Java 11 Open JDK on Linux. It supports downloading from the internet, using a local official package, linking to the latest version, and adjusting settings for alternatives.
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
None are needed.
Installation
To install, run:
ansible-galaxy install kami911.java-open-jdk11
Role Variables
Here are the options you can set, along with their default values (found in defaults/main.yml
):
force_java_install:
False
Force installation of Java even if it is already installed.java_installer_force_overwrite:
False
Force the installer to overwrite the existing Java installer.java_installer_keep:
False
Do not delete the Java installer after installation.java_installer_local:
False
Use a local JDK/Server JRE instead of downloading it to the target machine.java_type:
jdk
Type of Java to install - options arejdk
orserverjre
.java_version:
11
Major version of Java to install.java_update:
0
Minor version of Java.java_build:
"10"
Micro version of Java.java_platform:
linux-x64
Target platform for Java installation.java_bins:
List of binaries to update alternatives for.java_bins_priority:
9
Priority level for alternatives on these binaries.java_usr_folder:
/usr/java
Location of your installed Java.java_latest_folder:
/usr/java/latest
Where the latest Java version is linked.java_download_base_url:
https://download.java.net/java/ga/
Base URL for downloading Java installers.
Dependencies
None are required.
Example Playbook
Here's an example of how to use this role in an Ansible playbook:
- hosts: all
roles:
- java-open-jdk11
Licensing
This application and its documentation are licensed under MIT/BSD terms. You can find the license copy in the LICENSE file in the source package.
Author Information
This role was created by Kálmán Szalai - KAMI during 2016-2019.
Support
If you have questions, feel free to reach out. To report a bug or request a feature, please create an issue.
Using as a Submodule in an AWX Playbook
Add as a Submodule
git submodule add --force [email protected]:KAMI911/ansible-role-java-open-jdk11.git roles/java-open-jdk11
Update as a Submodule
To update just this submodule:
git submodule update --remote roles/java-open-jdk11/
To update all submodules:
git submodule foreach git pull origin master
Contributing
You can help improve ansible-role-java-open-jdk11 in many ways: sending patches, testing, reporting bugs, or improving documentation. All contributions are welcome!
For more details, please read the contributing chapter.
Fork Me on GitHub
SSH:
[email protected]:KAMI911/ansible-role-java-open-jdk11.git
HTTPS:
https://github.com/KAMI911/ansible-role-java-open-jdk11
To add a new remote upstream
:
git remote add upstream https://github.com/KAMI911/ansible-role-java-open-jdk11.git
To pull updates to your fork's master branch:
git fetch --all
git pull upstream HEAD
Donation
If you find this helpful, consider making a donation:
Ansible role for configuring Open JDK Java 11 or Server JRE with local installation support
ansible-galaxy install KAMI911.java_open_jdk11