lean_delivery.java
Java Role Overview
Badges
Summary
This Ansible role helps you install different Java distributions:
OpenJDK
- Installs JRE and JDK
- Options to install from openjdk-fallback, repositories, S3, web, Chocolatey, or local sources.
Oracle Java
- Installs JRE, JDK, and Server JRE
- Options for installation from S3, web, or local sources.
Notice: Using any version of this role means you agree to the Oracle Binary Code License Agreement for Java SE.
SAPJVM
- Installs JDK with options for installation from sapjvm-fallback, S3, web, or local sources.
ZULU
- Installs JDK, with options from zulu-fallback, S3, web, local sources, and Chocolatey.
Adoptium
- Installs JDK and JRE, with options from adoptium-fallback, repositories, web, local sources, S3, and Chocolatey.
SapMachine
- Installs JDK and JRE with options from sapmachine-fallback, web, local sources, and Chocolatey (latest version only), S3.
Alibaba Dragonwell 8 JDK
- Installs JDK compatible with OpenJDK 8 (for Linux/x86_64).
- Options for installation from dragonwell8-fallback, web, local sources, and S3.
Amazon Corretto
- Installs JDK 8 and 11, and JRE 8 (only on Amazon Linux 2), with options for installation from fallback, web, local sources, or S3.
Requirements
- Ansible version: 2.7
- Supported versions of OpenJDK, Oracle Java, SAPJVM, ZULU, Adoptium, SapMachine, Alibaba Dragonwell, and Amazon Corretto are listed, along with compatible operating systems (like Ubuntu, Debian, Amazon Linux, RHEL/CentOS, and Windows).
Role Variables
Key variables to customize your installation:
java_distribution
: Type of Java distribution to install (mandatory if not openjdk).java_package
: Type of package (JDK or JRE).transport
: Method of obtaining Java (repositories, web, local, S3, etc.).- Other customizable parameters include installation paths, version numbers, and transport options.
Example Ansible Playbooks
Install OpenJDK 17
- name: Install openjdk java
hosts: all
roles:
- role: lean_delivery.java
java_major_version: 17
Install OpenJDK 8 from Repositories
- name: Install openjdk java
hosts: all
roles:
- role: lean_delivery.java
transport: repositories
java_major_version: 8
Install Oracle Java 8 from Local File
- name: Install oracle java
hosts: all
roles:
- role: lean_delivery.java
java_distribution: oracle_java
transport: local
transport_local: /tmp/jdk-8u181-linux-x64.tar.gz
Install Amazon Corretto JDK 11 from S3 Bucket
- name: Install Amazon Corretto
hosts: all
roles:
- role: lean_delivery.java
java_distribution: corretto
transport: s3
transport_s3_bucket: java-s3-bucket
transport_s3_path: /java/jre-8u181-linux-x64.tar.gz
License
Apache License
Author Information
- Lean Delivery Team team@lean-delivery.com
Informazioni sul progetto
Lean Delivery Java install
Installa
ansible-galaxy install lean_delivery.java
Licenza
apache-2.0
Download
635.6k
Proprietario
Simplify by using!