Coder Social home page Coder Social logo

godleon / oracle-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ansiblebit/oracle-java

0.0 3.0 0.0 170 KB

Ansible role to install Oracle Java on Debian and RedHat based distributions.

Home Page: https://galaxy.ansible.com/list#/roles/3375

License: BSD 3-Clause "New" or "Revised" License

Ruby 16.15% Python 11.86% Shell 71.99%

oracle-java's Introduction

ansiblebit.oracle-java

License Build Status

Platform Platform Platform Platform

Project Stats

An Ansible role to setup Oracle Java Development Kit.

DISCLAIMER: usage of any version of this role implies you have accepted the Oracle Binary Code License Agreement for Java SE.

WARNING: in RedHat based distributions, if you want to use oracle_java_version_update: 121, you'll have to set oracle_java_rpm_url: "http://download.oracle.com/otn-pub/java/jdk/{{ oracle_java_version }}u{{ oracle_java_version_update }}-b{{ oracle_java_version_build }}/e9e7ea248e2c4826b92b3f075a80e441/{{ oracle_java_rpm_filename }}".

Tests

Family Distribution Version Test Status
Debian Debian Jessie x86_64
Debian Ubuntu Precise x86_64
Debian Ubuntu Yakkety x86_64
Debian Ubuntu Xenial x86_64
Debian Ubuntu Trusty x86_64
Debian Ubuntu Vivid x86_64
Debian Ubuntu Wily x86_64
RedHat Centos 7 x86_64

Requirements

  • ansible >= 2.x

Facts

variable description
oracle_java_installed fact set by this role that contains a flag that indicates if Java is installed on the host.
oracle_java_version_installed fact set by this role that contains the string of the Java version installed in the system.

Role Variables

variable default description
debug undefined flag to make role more verbose.
oracle_java_set_as_default yes make the newly installed Java the default runtime environment.
oracle_java_state latest the package state (see Ansible apt module for more information).
oracle_java_version 8 the Oracle JDK version to be installed.
oracle_java_version_update 112 the Oracle JDK version update.
oracle_java_version_build 15 the Oracle JDK version update build number.
oracle_java_version_string 1.{{ oracle_java_version }}.0_u{{ oracle_java_version_update }} the Java version string to verify installation against.
oracle_java_os_supported - role internal variable to check if a OS family is supported or not.

Debian-only

variable default description
oracle_java_cache_valid_time 3600 the amount of time in seconds the apt cache is valid.
oracle_java_state latest the package state (see Ansible apt module for more information).
oracle_java_home /usr/lib/jvm/java-{{ oracle_java_version }}-oracle the location of the Java home directory.

Redhat-only

variable default description
oracle_java_dir_source /usr/local/src directory where to store the RPM files.
oracle_java_home /usr/java/jdk1.{{ oracle_java_version }}.0_{{ oracle_java_version_update }} the location of the Java home directory.
oracle_java_rpm_filename jdk-{{ oracle_java_version }}u{{ oracle_java_version_update }}-linux-x64.rpm the filename of the RPM.
oracle_java_rpm_url http://download.oracle.com/otn-pub/java/jdk/{{ oracle_java_version }}u{{ oracle_java_version_update }}-b{{ oracle_java_version_build }}/{{ oracle_java_rpm_filename }} the URL where the RPM can be downloaded from.
oracle_java_rpm_validate_certs yes flag to indicate if you want SSL certificate validation.

Playbooks

- hosts: servers
  roles:
     - role: ansiblebit.oracle-java,
       oracle_java_set_as_default: yes

Use --skip-tags=debug if you want to suppress debug information.

oracle-java's People

Contributors

steenzout avatar hryamzik avatar bpineau avatar cyfdecyf avatar reactormonk avatar gaell avatar

Watchers

Leon Tseng avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.