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: false
Packages to install, set the version/development kit of Java to install:
java_packages:
- openjdk-8-jdk
The role will automatically set the JAVA_HOME
environment variable.
None
- hosts: servers
roles:
- java
or put params needed inline::
- hosts: servers
roles:
- { role: java, install_oracle_java: false }
or put in requirements.yml
- src: [email protected]:leandevops/ansible-role-java.git
version: v1.0
This code is released under the Apache 2.0 License. Please see LICENSE for more details.
Copyright © 2019 LeanDevops.