Installs OracleJDK from WebUpd8 team's PPA (http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html).
-
oraclejdk_package
Name of package to install (default is
oracle-java8-installer
). -
oraclejdk_set_as_default
Setting JDK as default JDK. When this parameter is set to
true
then alternatvies will be updated and environment variables likeJAVA_HOME
will be changed. In reality it just installs appropriateoracle-javaX-set-default
package. (Default istrue
).
- adds
webupd8team/java
PPA - updates
apt
's cache - accepts Oracle's license
- installs package(s)
ansible-galaxy install php-coder.oraclejdk
For more installation's options/variants read the documentation: http://docs.ansible.com/galaxy.html
Example of usage with default parameters:
- hosts: all
roles:
- php-coder.oraclejdk
Example of usage to install OracleJDK 7:
- hosts: all
roles:
- { role: php-coder.oraclejdk, oraclejdk_package: 'oracle-java7-installer' }
GPLv2
Slava Semushin ([email protected])