Role to install and configure openjdk with ansible
None
- Debian 10 (Buster)
Default variables. They define the path where the JVM will be installed and the path where the symlink to default-java will be.
openjdk_jvm_path: "/usr/lib/jvm"
openjdk_default_java_link: "{{ openjdk_jvm_path }}/default-java"
OS specific variables. If not explicitly defined elsewhere, those will be used.
__openjdk_packages:
- openjdk-8-jdk
__openjdk_dir_name: "java-8-openjdk-amd64"
__openjdk_java_full_path: "{{ openjdk_jvm_path }}/{{ openjdk_dir }}"
---
- hosts: somehost
roles:
- supertarto.openjdk
vars:
openjdk_packages:
- openjdk-11-jre
openjdk_dir_name: "java-11-openjdk-amd64"
ansible-galaxy install supertarto.openjdk
GPL V3.0