oracle-java8
oracle-java
An Ansible role which installs and configures Oracle's Java /[89]/
Requirements
Currently this role is developed for and tested on Debian GNU/Linux (release: stretch). It is assumed to work on other Debian distributions as well.
Ansible version compatibility: Dockerfile
Example
---
- hosts: "all"
roles:
- role: "ansible-oracle-java"
tags:
- "oracle-java"
post_tasks:
- block:
- include: "tests/test_compile_hello_world.yml"
tags:
- "tests"
Defaults
Available variables are listed below, along with default values (see defaults/main.yml). They're generally prefixed with oracle_java_
(which I deliberately leave out here for better formatting).
variable | default | notes |
---|---|---|
cache_valid_time |
3600 |
Update the apt cache if its older than the set value (in seconds) |
default_release |
xenial |
The default release to install packages from |
major_version |
8 |
The default major version of Oracle Java to be installed |
package_list |
['oracle-java{{ oracle_java_major_version}}-installer', 'oracle-java{{ oracle_java_major_version}}-set-default'] |
The list of packages to be installed |
pre_default_release |
{{ ansible_distribution_release|lower }} |
The default release to install packages (pre_package_list) from |
pre_package_list |
['apt-transport-https','ca-certificates'] |
The list of prerequisite packages to be installed |
repo_list[0]['repo'] |
deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main |
Source string for the repositories |
repo_list[0]['repo']['key']['keyserver'] |
keyserver.ubuntu.com |
Keyserver to retrieve the key (for the repository) from |
repo_list[0]['repo']['key']['id'] |
EEA14886 |
Identifier of (the repository) key |
supported_distro_list |
['stretch'] |
A list of distribution releases this role supports |
update_cache |
yes |
Run the equivalent of apt-get update before the operation |
Dependencies
None
License
MIT
Author Information
- Patrick Ringl