gabops / ansible-role-openjdk

Installs and configures OpenJDK.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gabops.openjdk

Build Status

Installs and configures OpenJDK.

Requirements

None.

Role Variables

Variable Default value Description
openjdk_version 8 Defines the OpenJDK version to install.
openjdk_java_home "" Defines the value for the JAVA_HOME environment variable.
openjdk_java_tool_options "" A set of options as string to be used as value for the JAVA_TOOL_OPTIONS environment variable. This allows you to set parameters globally. See Example playbook for more details.

Notes:

  • Keep in mind that not all versions you define on openjdk_version will be available on the repositories of the system you are targeting. The next table may help you:
Distro Version 6 Version 7 Version 8 Version 9 Version 10 Version 11 Version 12 Version 13
CentOS 6 ✔️ ✔️ ✔️
CentOS 7 ✔️ ✔️ ✔️ ✔️
CentOS 8 ✔️
Amazon Linux 1 ✔️ ✔️ ✔️
Amazon Linux 2 ✔️ ✔️
Debian 9 ✔️
Debian 10 ✔️
Ubuntu 16.04 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Ubuntu 18.04 ✔️ ✔️ ✔️

Dependencies

None.

Example Playbook

- hosts: servers
  vars:
    openjdk_version: 11
    openjdk_java_tool_options: -Xms64M -Xmx256M -Djava.awt.headless=true
  roles:
      - role: gabops.openjdk

License

MIT

Author Information

Gabriel Suarez (Gabops)

About

Installs and configures OpenJDK.

License:MIT License


Languages

Language:Makefile 56.8%Language:Python 43.2%