Skip to content

Ansible role to set up (the latest version of) oracle-java in Ubuntu systems

License

Notifications You must be signed in to change notification settings

Oefenweb/ansible-oracle-java

Repository files navigation

oracle-java

Build Status Ansible Galaxy

Set up (the latest or a specific update version of) oracle-java in Ubuntu systems.

Requirements

  • update-alternatives
  • software-properties-common (will be installed)
  • dirmngr (will be installed)

Variables

  • oracle_java_versions: [default: [{version: 7, set_as_default: true}]]: Oracle java version(s) to install
  • oracle_java_versions.{n}.version: [required]: Version to install
  • oracle_java_versions.{n}.set_as_default: [optional]: Whether or not to set as default
  • oracle_java_versions.{n}.update_version: [optional]: A specific update version to use (e.g. 8u121-1~webupd8~0). Must be a version of webupd8team. If undefined, the latest (update) version is installed

Dependencies

None

Example(s)

Simple
---
- hosts: all
  roles:
    - oefenweb.oracle-java
Advanced
---
- hosts: all
  roles:
    - oefenweb.oracle-java
  vars:
    oracle_java_versions:
      - version: 7
      - version: 8
        set_as_default: true
        update_version: '8u121-1~webupd8~0'

License

MIT

Author Information

Mischa ter Smitten

Feedback, bug-reports, requests, ...

Are welcome!