Giter VIP home page Giter VIP logo

ansible-java-role's Introduction

Ansible Java Role

Build Status

Manages installation of Java JREs and JDKs. It supports both OpenJDK and Oracle JRE and JDK 6, 7 and 8. All of them are installed using the package manager.

Requirements

None.

Role Variables

The java_packages variable must be set to a list of the desired Java packages. For example:

java_packages:
  - openjdk-6-jdk
  - oracle-java7-installer

Debian / Ubuntu

Valid packages for Debian and Ubuntu are:

  • openjdk-6-jre
  • openjdk-6-jre-headless
  • openjdk-6-jdk
  • openjdk-7-jre
  • openjdk-7-jre-headless
  • openjdk-7-jdk
  • oracle-java6-installer
  • oracle-java7-installer
  • oracle-java8-installer

32bit Java may be installed on x86 platforms appending :i386 to the package name.

You can ensure that Oracle JDK is set as the default JDK by adding oracle-java6-set-default, oracle-java7-set-default or oracle-java6-set-default to the java\_packages list.

Fedora

Valid packages for Fedora are:

  • java-1.7.0-openjdk
  • java-1.8.0-openjdk

Others

Got this role working with a different distro? Please, report it on GitHub or drop me a line at [email protected].

Dependencies

None.

Example Playbook

- hosts: servers
  roles:
     - { role: smola.java }

License

Copyright (c) Santiago M. Mola [email protected]

ansible-java-role is released under the terms of the MIT License.

Acknowledgements

Thanks to Jeff Geerling (@geerlingguy) from whom I have borrowed some ideas from his ansible-java-role and Testing Ansible Roles with Travis CI on GitHub.

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.