Giter Site home page Giter Site logo

ansible-role-java's Introduction

ansible-role-java

Installs and configures Java (JDK or JRE).

Notes for Ubuntu 14.04

At this time of writing, JDK 1.8 is not in the official apt repository. The role adds a ppa repository and installs oracle-java8-installer, i.e. no JRE support.

Requirements

None

Role Variables

Note that the digits in the sub-section names below does not represent versions the role supports.

Variable Description Default
java_packages list of Java package name to install {{ __java_packages }}

Debian-8

Variable Default
__java_packages ["openjdk-8-jdk"]

FreeBSD

Variable Default
__java_packages ["java/openjdk13"]

OpenBSD

Variable Default
__java_packages ["jdk--%11"]

RedHat

Variable Default
__java_packages ["java-1.8.0-openjdk", "java-1.8.0-openjdk-devel"]

Ubuntu-14

Variable Default
__java_packages ["oracle-java8-installer"]

Ubuntu-16

Variable Default
__java_packages ["openjdk-8-jdk"]

Ubuntu-18

Variable Default
__java_packages ["openjdk-8-jdk"]

Ubuntu-20

Variable Default
__java_packages ["openjdk-11-jdk"]

Dependencies

None

Example Playbook

---
- hosts: localhost
  roles:
    - role: trombik.apt_repo
      when: ansible_os_family == 'Debian'
    - role: ansible-role-java
  vars:
    os_java_packages:
      FreeBSD:
        - java/openjdk13
      RedHat:
        - java-1.8.0-openjdk
        - java-1.8.0-openjdk-devel
      OpenBSD:
        - jdk--%11
      Debian:
        - openjdk-8-jdk
    java_packages: "{{ os_java_packages[ansible_os_family] }}"

License

Copyright (c) 2016 Tomoyuki Sakurai <[email protected]>

Permission to use, copy, modify, and distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Author Information

Tomoyuki Sakurai [email protected]

This README was created by qansible

ansible-role-java's People

Contributors

trombik avatar ochko avatar

Watchers

 avatar James Cloos avatar

ansible-role-java's Issues

[DEPRECATION WARNING]: Invoking "pkgng" only once while using a loop

       TASK [ansible-role-java : Install java] ****************************************
       [DEPRECATION WARNING]: Invoking "pkgng" only once while using a loop via 
       squash_actions is deprecated. Instead of using a loop to supply multiple items 
       and specifying `name: "{{ item }}"`, please use `name: '{{ java_packages }}'` 
       and remove the loop. This feature will be removed in version 2.11. Deprecation 
       warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

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.