opstree_devops.java

Ansible Role: osm_java

This is an Ansible role for installing and configuring Java.

Version History

Date Version Description Changed By
June '15 v.1.0 First version Sudipt Sharma

Key Features

  • This role installs Java version 8 by default. If you need a different version, you can set it using variables.

Supported Operating Systems

  • CentOS 7
  • CentOS 6
  • Ubuntu Bionic
  • Ubuntu Xenial

Role Variables

Variable Name Default Value Description
java_version_redhat java-1.8.0 Java version for CentOS
java_version openjdk-8-jdk Java version for Ubuntu

Inventory

Your inventory file should look like this:

[javahost]                 
192.168.1.198    ansible_user=ubuntu   
192.168.3.201    ansible_user=opstree 

Example Playbook

  • An example playbook is shown below:
- hosts: javahost
  roles:
    - role: osm_java
  • Run the playbook using: ansible-playbook java.yml

After installing Java, you can check the version with the command below: version

Future Proposed Changes

References

Author Information

Informazioni sul progetto

This is a role for java installation

Installa
ansible-galaxy install opstree_devops.java
Licenza
Unknown
Download
642
Proprietario