gabops.openjdk
gabops.openjdk
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_versionwill 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 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :x: | :x: | :x: |
| CentOS 7 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :heavy_check_mark: | :x: | :x: |
| CentOS 8 | :x: | :x: | :heavy_check_mark: | :x: | :x: | :x: | :x: | :x: |
| Amazon Linux 1 | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :x: | :x: | :x: |
| Amazon Linux 2 | :x: | :heavy_check_mark: | :heavy_check_mark: | :x: | :x: | :x: | :x: | :x: |
| Debian 9 | :x: | :x: | :heavy_check_mark: | :x: | :x: | :x: | :x: | :x: |
| Debian 10 | :x: | :x: | :x: | :x: | :x: | :heavy_check_mark: | :x: | :x: |
| Ubuntu 16.04 | :x: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
| Ubuntu 18.04 | :x: | :x: | :heavy_check_mark: | :x: | :x: | :x: | :heavy_check_mark: | :heavy_check_mark: |
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
Author Information
Gabriel Suarez (Gabops)
Install
ansible-galaxy install gabops.openjdkLicense
mit
Downloads
73
Owner
I am a DevOps engineer who likes Python, Go, AWS, Kubernetes and climbing with friends.
