nolte.msopenjdk

Ansible Role MSOpenJDK

molecule e2e Install from Ansible Galaxy


This role installs and sets up Microsoft OpenJDK on your host. It downloads the OpenJDK files and saves them on your local system.

Installation

To install this role, run:

ansible-galaxy install nolte.msopenjdk

Or, add it to your requirements.yml file like this:

- name: nolte.msopenjdk

Then, execute:

ansible-galaxy install -r requirements.yml

How to Use

You can use the role in your playbook like this:

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

By default, this role installs JDK version 16. You can change this by modifying the jdk_used_version variable to either 11 or 16.

Role Parameters

Parameter Default Description
jdk_used_version 17 Version of JDK to use. Available options are 11, 16, and 17.
archiveFolderName {{ jdk_versions[_jdk_used_version].archiveFolderName }} Name of the folder in the archive, used for creating links to Java binaries.
downloadUrl https://aka.ms/download-jdk/{{ jdk_versions[_jdk_used_version].archiveName }} URL to download the JDK archive.
checksumUrl https://aka.ms/download-jdk/{{ jdk_versions[_jdk_used_version].archiveName }}.sha256sum.txt URL for a text file containing SHA256 checksum information.

Development

For development and testing, we use Molecule with Docker.

To install JDK 11 during a Molecule test, run the following:

export MOLECULE_JDK_USED_VERSION="11"
molecule test
Informazioni sul progetto

install and configure ms openjdk

Installa
ansible-galaxy install nolte.msopenjdk
Licenza
Unknown
Download
1.5k
Proprietario