nolte / ansible-role-msopenjdk

Ansible Role for install the Microsoft OpenJDK from Archive.
https://nolte.github.io/ansible-role-msopenjdk
0 stars 1 forks source link
ansible ansible-role openjdk

Ansible Role MSOpenJDK

molecule e2e Install from Ansible Galaxy


Install and configure microsoft openjdk to host. This role will be download the openjdk archive, and place it to the local filesystem.

Install

ansible-galaxy install nolte.msopenjdk

or add this to your requirements.yml

- name: nolte.msopenjdk

and execute ansible-galaxy install -r requirements.yml

Usage

- hosts: all
  roles:
     - { role: nolte.msopenjdk }

By default we install a jdk 16, you can change this by edit the jdk_used_version variable possible Values are (11 and 16).

Role Parameters

Value Default Description
jdk_used_version 17 Used JDk Version, supported Values are 11,16 and 17.
archiveFolderName {{ jdk_versions[_jdk_used_version].archiveFolderName }} Folder Name inside the Archive, used for build the Link to the java binaries.
downloadUrl https://aka.ms/download-jdk/{{ jdk_versions[_jdk_used_version].archiveName }} Download Url for the JDK Archive.
checksumUrl https://aka.ms/download-jdk/{{ jdk_versions[_jdk_used_version].archiveName }}.sha256sum.txt Text file with sha256sum informations.

Development

For development and testing we use molecule in combination with docker.


# for install jdk 11 at molecule run
export MOLECULE_JDK_USED_VERSION="11"

molecule test

Links