php-coder.oraclejdk

Ansible role for OracleJDK installation

Installs OracleJDK from WebUpd8 team's PPA (http://www.webupd8.org/2012/09/install-oracle-java-8-in-ubuntu-via-ppa.html).

Role Variables

  • 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 like JAVA_HOME will be changed. In reality it just installs appropriate oracle-javaX-set-default package. (Default is true).

Actions role

  • adds webupd8team/java PPA
  • updates apt's cache
  • accepts Oracle's license
  • installs package(s)

How to install

ansible-galaxy install php-coder.oraclejdk

For more installation's options/variants read the documentation: http://docs.ansible.com/galaxy.html

Example Playbook

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' }

License

GPLv2

Author Information

Slava Semushin (slava.semushin@gmail.com)

About

Installs OracleJDK from WebUpd8 team's PPA

Install
ansible-galaxy install php-coder.oraclejdk
GitHub repository
License
Unknown
Downloads
326
Owner
Senior Pull Request Reviewer