https://github.com/nolte/ansible-role-msopenjdk
Ansible Role for install the Microsoft OpenJDK from Archive.
https://github.com/nolte/ansible-role-msopenjdk
ansible ansible-role openjdk
Last synced: about 1 year ago
JSON representation
Ansible Role for install the Microsoft OpenJDK from Archive.
- Host: GitHub
- URL: https://github.com/nolte/ansible-role-msopenjdk
- Owner: nolte
- Created: 2021-06-13T13:54:30.000Z (about 5 years ago)
- Default Branch: develop
- Last Pushed: 2025-04-08T19:36:32.000Z (over 1 year ago)
- Last Synced: 2025-04-12T08:53:49.786Z (about 1 year ago)
- Topics: ansible, ansible-role, openjdk
- Language: Python
- Homepage: https://nolte.github.io/ansible-role-msopenjdk
- Size: 657 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Ansible Role MSOpenJDK
=========
[](https://github.com/nolte/ansible-role-msopenjdk/actions?query=workflow%3A%22molecule+e2e%22) [](https://github.com/nolte/ansible-role-msopenjdk) [](https://galaxy.ansible.com/nolte/msopenjdk)
---
Install and configure [microsoft openjdk](https://docs.microsoft.com/de-de/java/openjdk/install) 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](https://molecule.readthedocs.io/en/latest/) in combination with docker.
```sh
# for install jdk 11 at molecule run
export MOLECULE_JDK_USED_VERSION="11"
molecule test
```
## Links
* Used at [nolte/ansible-minecraft](https://github.com/nolte/ansible-minecraft).