Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/avinash6784/ansible-oracle-java
Ansible role to install oracle java 1.8
https://github.com/avinash6784/ansible-oracle-java
ansible devops java-8 oracle-java role
Last synced: 27 days ago
JSON representation
Ansible role to install oracle java 1.8
- Host: GitHub
- URL: https://github.com/avinash6784/ansible-oracle-java
- Owner: avinash6784
- License: mit
- Created: 2017-03-11T06:28:03.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-18T06:24:28.000Z (about 7 years ago)
- Last Synced: 2024-01-14T17:27:52.330Z (12 months ago)
- Topics: ansible, devops, java-8, oracle-java, role
- Size: 5.86 KB
- Stars: 4
- Watchers: 2
- Forks: 16
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: Oracle Java [Ansible Playbook Role To Install Java]
Install Oracle Java 1.8, a distributed version control system, on any RHEL/CentOS Linux system.
## Requirements
None.
## Role Variables
```yml#Role Java vars
download_url: http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz
download_folder: /opt
java_name: "{{download_folder}}/jdk1.8.0_151"
java_archive: "{{download_folder}}/jdk-8u151-linux-x64.tar.gz"
java_env_file: "/etc/profile.d/java.sh"
java_home: /opt/jdk1.8.0_151```
## Dependencies
None.
## Usage and Example Playbook
Install from Ansible Galaxy
$ ansible-galaxy install avinash6784.oracle-java
Or download manually$ git clone https://github.com/avinash6784/ansible-oracle-java.git
The code should reside in the roles directory of ansible ( See ansible documentation for more information on roles ), in a folder oracle-java.## Run the playbook
First create a playbook including the git role, naming it java.yml.
```yml
- name: Install Oracle Java
hosts: java
become: true
roles:
- oracle-java
$ ansible-playbook -i hosts java.yml
```## Author Informations
This role was created by [Avinash Pawar](http://devopstechie.com).