KAMI911.java_oracle_jdk8

Ansible Role: Installs Java 8 JDK or Server JRE

This role installs Java 8 JDK on Linux systems.

Travis status: Build Status Code Climate status: Code Climate Test Coverage status: Test Coverage

Table of Contents

  1. Requirements
  2. Installation
  3. Role Variables
  4. Dependencies
  5. Example Playbook
  6. Licensing
  7. Author Information
  8. Support
  9. Contributing
  10. 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 between jdk for Java Development Kit and server-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:

paypal

Informazioni sul progetto

Ansible role for configuring Oracle Java 8 or Server JRE with local installation support

Installa
ansible-galaxy install KAMI911.java_oracle_jdk8
Licenza
mit
Download
89
Proprietario
Open Source Enthusiast, System Administrator, Pythonist, OpenStreetMap & GIS Fan