An Ansible role to install the Java
package.
- Supported version of Ansible: 2.12 and highter.
- Supported platforms:
- Amazon Linux
- 2
- 2023
- Debian
- 10
- 11
- 12
- RHEL
- 7
- 8
- 9
- Ubuntu
- 18.04
- 20.04
- 22.04
- Amazon Linux
java_distribution
The Java package distribution type. Available values are:openjdk
(default),corretto
.java_openjdk_package_name
The OpenJDK package name (see default values invars/*.yml
).java_corretto_repository_mirror_url
The Amazon Corretto repository mirror.https://yum.corretto.aws
(for RedHat based distributions)https://apt.corretto.aws
(for Debian based distributions)
java_corretto_repository_gpgkey_url
URL to Amazon Corretto GPG key file.https://yum.corretto.aws/corretto.key
(for RedHat based distributions)https://apt.corretto.aws/corretto.key
(for Debian based distributions)
java_corretto_package_name
The Amazon Corretto package name (see default values invars/*.yml
).java_home
The JAVA_HOME environment variable is used to specify the location of the Java executable files.
None.
Install the Java
package:
---
- name: 'Install the Java package'
hosts: all
roles:
- role: antmelekhin.java
MIT
Melekhin Anton.