Coder Social home page Coder Social logo

ansible-role-java's Introduction

java role

License Build Status

Summary

This Ansible role has the following features for Oracle Java:

  • Install JRE, JDK, Server-JRE
  • Additional opportunity to install from s3, web, oracle OTN, local source.

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

Requirements

  • Version of the ansible for installation: 2.4
  • Supported java version:
    • 7
    • 8
  • Supported OS:
    • CentOS
      • 6
      • 7
    • Windows:
      • 10

Role Variables

  • required

    • java_package Java package type. Available:

      • jdk
      • jre
      • server-jre
    • transport Artifact source transport. Use local or web for more predictable result. OTN is not enough stable. Available:

      • oracle-fallback Downloading artifact from pre-defined oracle otn known artifacts fallback_oracle_artifacts with specified:
        • java_package
        • java_major_version
        • java_minor_version
        • java_arch
      • web Fetching artifact from custom web uri (not supporting idempotent operation)
      • win-chocolatey Windows specific package manager
      • local Local artifact
  • defaults

    • java_major_version 8

    • java_minor_version 181

    • java_arch Package architecture. Available:

      • x64 for x86_64
      • i586 for x86
    • java_path Where java package will be installed default: /opt/{{ java_package }}/

    • download_path: Local folder for downloading artifacts default: /tmp/

    • transport_web URI for http/https artifact e.g. "http://my-storage.com/jdk-8u172-linux-x64.tar.gz"

    • transport_local Path for local artifact e.g. "/tmp/jdk-8u172-linux-x64.tar.gz"

Some examples of the installing current role

Example Playbook

- name: "Install java"
  hosts: all

  roles:
    - role: "lean-delivery.ansible-role-java"
      java_major_version: 8
      java_minor_version: 181
      java_arch: "x64"
      java_package: "jdk"

Installing java from local file:

- name: "Install java"
  hosts: all

  roles:
    - role: "lean-delivery.ansible-role-java"
      transport: "local"
      transport_local: "/tmp/jdk-8u181-linux-x64.tar.gz"

License

Apache2

Author Information

authors:

ansible-role-java's People

Contributors

arno49 avatar

Watchers

 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.