openjdk8
:warning::rotating_light: This project is no longer maintained and has been archived.
Ansible Role: openjdk8
Role to install (by default) openjdk-8-jdk package for Debian based systems and java-1.8.0-openjdk-devel
for EL systems or uninstall (if passed as var) on Debian based and EL based systems.
Requirements
None.
Role Variables
Available variables are listed below (located in defaults/main.yml
):
Variables list:
openjdk8_app_debian: openjdk-8-jdk
openjdk8_app_el: java-1.8.0-openjdk-devel
openjdk8_desired_state: present
Variables table:
Variable | Description |
---|---|
openjdk8_app_debian | Defines the app to install on Debian based systems i.e. openjdk-8-jdk |
openjdk8_app_el | Defines the app to install on Enterprise Linux (Redhat/CentOS) systems i.e. java-1.8.0-openjdk-devel |
openjdk8_desired_state |
Dependencies
None
Example Playbook
For default behaviour of role (i.e. installation of openjdk8 package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.openjdk8
For customizing behavior of role (i.e. installation of latest openjdk8 package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.openjdk8
vars:
openjdk8_desired_state: latest
For customizing behavior of role (i.e. un-installation of openjdk8 package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.openjdk8
vars:
openjdk8_desired_state: absent
License
Author Information
This role was created by Ali Muhammad.
About
Install/uninstall OpenJDKs Java 8 package on Debian and EL based systems.
Install
ansible-galaxy install darkwizard242/ansible-role-openjdk8
License
mit
Downloads
6062
Owner
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!