This role lets you install various flavors and versions of Java.
Name | Required | Example | Description |
---|---|---|---|
version |
no | 17 |
Java major version to install. Supported values are 8 , 11 , 17 , 21 . Defaults to 21 . |
flavor |
no | distro |
Java distribution to install. Supported values are corretto , distro , liberica , microsoft , temurin , zulu . Defaults to distro . |
For a complete list of supported Java versions, please refer to flavor_support
in vars/main.yml
.
- include_role:
name: noobient.java
- include_role:
name: noobient.java
vars:
version: 11
flavor: microsoft
Key | Type | Example | Description |
---|---|---|---|
java.java_home |
string | /usr/lib/jvm/bellsoft-java8-amd64 |
JAVA_HOME of the Java release installed by this role. |
Platform | Support | Status |
---|---|---|
Linter | ✅ | |
AlmaLinux 8 | ✅ | |
AlmaLinux 9 | ✅ | |
Fedora 40 | ✅ | |
Fedora 41 | ✅ | |
Ubuntu 20.04 | ✅ | |
Ubuntu 22.04 | ✅ | |
Ubuntu 24.04 | ✅ |