Role name in Ansible Galaxy: williamyeh.oracle-java
This Ansible role has the following features for Oracle JDK:
- Install JDK 7 or 8 version.
- Install for CentOS and Debian/Ubuntu families.
If you prefer OpenJDK, try alternatives such as smola.java.
None.
User-configurable defaults:
# which version?
java_version: 8
# which subversion?
java_subversion: 65
# which directory to put the download file (for CentOS families)?
java_download_path: /tmp
# remove temporary downloaded files?
java_remove_download: trueFor other configurable internals, read tasks/set-role-variables.yml file.
Add role name williamyeh.oracle-java to your playbook file.
Set vars in your playbook file.
Simple example:
---
# file: simple-playbook.yml
- hosts: all
roles:
- williamyeh.oracle-java
vars:
java_version: 8None.
Licensed under the Apache License V2.0. See the LICENSE file for details.
Rewritten from my pre-Galaxy version: server-config-template.