darkwizard242.openjdk8
⚠️🚨 This project is no longer updated and has been archived.
Ansible Role: openjdk8
This role installs the openjdk-8-jdk package for Debian-based systems, or java-1.8.0-openjdk-devel
for EL (Enterprise Linux) systems. It can also uninstall these packages if specified.
Requirements
None.
Role Variables
The available variables are listed below (found in defaults/main.yml
):
Variable List:
openjdk8_app_debian: openjdk-8-jdk
openjdk8_app_el: java-1.8.0-openjdk-devel
openjdk8_desired_state: present
Variable Table:
Variable | Description |
---|---|
openjdk8_app_debian | The package to install on Debian systems (i.e. openjdk-8-jdk) |
openjdk8_app_el | The package to install on EL systems (i.e. java-1.8.0-openjdk-devel) |
openjdk8_desired_state | Specifies if you want to install (use present or latest ) or uninstall (use absent ) the package. Default is set to present . |
Dependencies
None
Example Playbook
To use the default behavior of this role (installing the openjdk8 package) in Ansible playbooks.
- hosts: servers
roles:
- darkwizard242.openjdk8
To change the behavior (installing the latest openjdk8 package) in Ansible playbooks.
- hosts: servers
roles:
- darkwizard242.openjdk8
vars:
openjdk8_desired_state: latest
To change the behavior (uninstalling the 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.
Informazioni sul progetto
Install/uninstall OpenJDKs Java 8 package on Debian and EL based systems.
Installa
ansible-galaxy install darkwizard242.openjdk8
Licenza
mit
Download
6.4k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!