Skip to content

Commit

Permalink
readme update (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitry-rudnouski authored Nov 8, 2023
1 parent 39effb8 commit d25ac31
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,9 @@ Requirements
- 7
- 8
- **Supported zulu version**:
- 7
- 8
- 11
- 12
- 17
- **Supported AdoptOpenJDK version**:
- 8
- 11
Expand Down Expand Up @@ -188,7 +187,7 @@ Requirements
These packages are not included in given role. You should install them preliminary.

- `java_tarball_install` - boolean parameter to choose between tarball and package installation. Default is `true` if `transport` is not `repositories`.
- `java_major_version` - major version of OpenJDK (8,11,12) or oracle-java (6,7,8, 11 etc.) Default is 12.
- `java_major_version` - major version of OpenJDK (8,11,17) or oracle-java (6,7,8, 11 etc.) Default is 12.
- `java_minor_version` - minor version of oracle-java. For version `8.202` minor will be `202` (default). For OpenJDK this variable not needed setup manually.
- `java_arch` Package architecture. (With installing OpenJDK from repositories its variable you may use only for RHEL )

Expand Down Expand Up @@ -269,14 +268,15 @@ ansible-galaxy install lean_delivery.java

Example Playbook
----------------
### Installing OpenJDK 13 from openjdk-fallback (default role behaviour):
### Installing OpenJDK 17 from openjdk-fallback (default role behaviour):

```yaml
- name: Install openjdk java
hosts: all

roles:
- role: lean_delivery.java
java_major_version: 17
```
### Installing OpenJDK 8 from repositories:
Expand Down Expand Up @@ -360,7 +360,7 @@ https://docs.ansible.com/ansible/latest/modules/aws_s3_module.html#requirements
transport: fallback
java_major_version: 8
```
### Installing ZULU 12 from zulu-fallback:
### Installing ZULU 17 from zulu-fallback:
```yaml
- name: Install zulu
Expand All @@ -370,6 +370,8 @@ https://docs.ansible.com/ansible/latest/modules/aws_s3_module.html#requirements
- role: lean_delivery.java
java_distribution: zulu
transport: fallback
java_major_version: 17
java_package: jdk
```
### Installing AdoptOpenJDK 8-openj9-jre from adoptopenjdk-fallback:
Expand Down

0 comments on commit d25ac31

Please sign in to comment.