Role Detail

geerlingguy.java

Java for Linux
Downloads
100386
Type Ansible
Minimum Ansible Version 2.0
Installation $ ansible-galaxy install geerlingguy.java
Tags
development
system
web
Last Commit 2017-04-02 15:41:03 PM UTC
Last Imported 2017-10-05 17:34:05 PM UTC
Version History
Version Release Date
1.7.4 2017-02-21 23:01:11 PM
1.7.3 2017-02-07 17:09:05 PM
1.7.2 2017-01-05 14:15:02 PM
1.7.1 2016-11-02 20:16:08 PM
1.7.0 2016-09-18 00:33:12 AM
1.6.0 2016-09-12 18:14:06 PM
1.5.1 2016-09-11 00:57:12 AM
1.5.0 2016-09-11 00:55:12 AM
1.4.1 2016-09-03 02:38:02 AM
1.4.0 2016-04-22 20:11:08 PM
1.3.0 2016-02-29 05:48:05 AM
1.2.1 2016-02-18 06:17:06 AM
1.2.0 2016-02-17 04:04:04 AM
1.1.1 2015-09-28 19:54:07 PM
1.1.0 2014-11-10 23:21:11 PM
1.0.4 2014-09-27 04:35:04 AM
1.0.3 2014-07-14 14:18:02 PM
1.0.2 2014-05-07 02:17:02 AM
1.0.1 2014-03-17 02:30:02 AM
1.0.0 2014-03-01 03:50:03 AM
Supported Platforms
Platform Version
Debian etch
Debian jessie
Debian lenny
Debian sid
Debian squeeze
Debian stretch
Debian wheezy
EL 6
EL 7
Fedora 16
Fedora 17
Fedora 18
Fedora 19
Fedora 20
Fedora 21
Fedora 22
Fedora 23
Fedora 24
Fedora 25
Fedora 26
FreeBSD 10.2
Ubuntu artful
Ubuntu lucid
Ubuntu maverick
Ubuntu natty
Ubuntu oneiric
Ubuntu precise
Ubuntu quantal
Ubuntu raring
Ubuntu saucy
Ubuntu trusty
Ubuntu utopic
Ubuntu vivid
Ubuntu wily
Ubuntu xenial
Ubuntu yakkety
Ubuntu zesty
Last 10 Imports
Completed Status
2017-10-05 17:34:05 PM UTC SUCCESS
2017-10-04 08:57:08 AM UTC SUCCESS
2017-07-29 16:04:04 PM UTC SUCCESS
2017-07-29 16:01:04 PM UTC SUCCESS
2017-04-27 16:24:04 PM UTC SUCCESS
2017-04-23 22:05:10 PM UTC SUCCESS
2017-04-23 11:45:11 AM UTC SUCCESS
2017-04-03 08:46:08 AM UTC SUCCESS
2017-04-02 05:09:05 AM UTC SUCCESS
2017-03-19 21:16:09 PM UTC SUCCESS

Ansible Role: Java

Build Status

Installs Java for RedHat/CentOS and Debian/Ubuntu linux servers.

Requirements

None.

Role Variables

Available variables are listed below, along with default values:

# The defaults provided by this role are specific to each distribution.
java_packages:
  - java-1.7.0-openjdk

Set the version/development kit of Java to install, along with any other necessary Java packages. Some other options include are included in the distribution-specific files in this role's 'defaults' folder.

java_home: ""

If set, the role will set the global environment variable JAVA_HOME to this value.

Dependencies

None.

Example Playbook (using default package, usually OpenJDK 7)

- hosts: servers
  roles:
    - geerlingguy.java

Example Playbook (install OpenJDK 8)

For RHEL / CentOS:

- hosts: server
  roles:
    - role: geerlingguy.java
      when: "ansible_os_family == 'RedHat'"
      java_packages:
        - java-1.8.0-openjdk

For Ubuntu < 16.04:

- hosts: server
  tasks:
    - name: installing repo for Java 8 in Ubuntu
      apt_repository: repo='ppa:openjdk-r/ppa'

- hosts: server
  roles:
    - role: geerlingguy.java
      when: "ansible_os_family == 'Debian'"
      java_packages:
        - openjdk-8-jdk

License

MIT / BSD

Author Information

This role was created in 2014 by Jeff Geerling, author of Ansible for DevOps.

None