Giter Club home page Giter Club logo

ansible-java-role's Introduction

Ansible Role: Java

Build Status

Requirements

None.

How it works

When user passes a jdk version, say 8u40, the role goes to load variables corresponding to the version. (To release user from passing verbose variables used by jdk-downloading, the role limits the supported jdk versions. If some jdk version is missing, please issue me or pull a request.) And downlaod jdk package from oracle server to jdk_download_dir of the local machine based on these variables. Then the role unarchives the package to install_dir of remote nodes, and do some configurations. And you're done!

Role Variables

  1. jdk_version (defalut: 8u40): the jdk version you want to install. Only support 8u40 for now.
  2. jdk_download_dir (default: /tmp/jdk): the folder to save jdk package in local machine.
  3. install_dir (default: {{ansible_env['HOME']}}): the path that you want to install the jdk to in remote nodes.

Dependencies

None.

Example Playbook

- hosts: your-servers
  roles:
    - { role: lerencao.java }

- hosts: your-servers
  roles:
    - { role: lerencao.java, jdk_version: 8u40, jdk_download_dir: /tmp }

- hosts: your-servers
  sudo: yes
  roles:
    - { role: lerencao.java, install_dir: /usr/local }

- hosts: your-servers
  sudo:
  roles:
    - { role: lerencao.java, jdk_version: 8u40, install_dir: /usr/local }

License

MIT

Author Information

This role was created by Jiafeng Cao.

Special thanks to silpion/ansible-java and robdyke/ansible-java.

ansible-java-role's People

Contributors

nanne007 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.