adoptopenjdk
AdoptOpenJDK role for Ansible
Install and configure AdoptOpenJDK on RHEL/CentOS- and Debian-based systems.
Quick start
Installation
ansible-galaxy install ayltai.adoptopenjdk
Usage
---
- hosts: all
roles:
- ayltai.adoptopenjdk
vars:
adoptopenjdk_package: adoptopenjdk-11-openj9
Variables
Name | Default | Description |
---|---|---|
adoptopenjdk_package |
adoptopenjdk-11-openj9 |
The name of AdoptOpenJDK installation package. |
Development
This project uses Docker to create an unified environment for development.
Install Docker
Download and install Docker from here.
Build Docker image
docker build --tag adoptopenjdk:latest .
Run Docker container
docker run \
--privileged \
-v $(pwd):/ansible-adoptopenjdk \
-v /var/run/docker.sock:/var/run/docker.sock \
-v /sys/fs/cgroup:/sys/fs/cgroup:ro \
-it --rm \
adoptopenjdk:latest
Now you have a shell running on a system with all the necessary tools installed.
Install dependencies
In the Docker container, run:
pip3 install -r requirements.txt
Unit testing
In the Docker container, run:
molecule test
License
References
About
Install and configure AdoptOpenJDK on RHEL/CentOS-based and Ubuntu systems
Install
ansible-galaxy install ayltai/ansible-adoptopenjdk
License
mit
Downloads
595
Owner
Principal Software Architect