This role installs java on linux servers (CentOS 7/Ubuntu 16.04/Ubuntu 18.04).
None
Available variables are listed below, along with default values:
The role installs openjdk by default unless 'install_oracle_java' parameter is set to True.
install_oracle_java: falsePackages to install, set the version/development kit of Java to install:
java_packages:
- openjdk-8-jdkThe role will automatically set the JAVA_HOME environment variable.
None
- hosts: servers
roles:
- javaor put params needed inline::
- hosts: servers
roles:
- { role: java, install_oracle_java: false }or put in requirements.yml
- src: git+git@github.com:leandevops/ansible-role-java.git
version: v1.0This code is released under the Apache 2.0 License. Please see LICENSE for more details.
Copyright © 2019 LeanDevops.