⚠️ 🚨 This project is no longer maintained and has been archived.
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.
None.
Available variables are listed below (located in defaults/main.yml
):
openjdk8_app_debian: openjdk-8-jdk
openjdk8_app_el: java-1.8.0-openjdk-devel
openjdk8_desired_state: present
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 |
None
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
This role was created by Ali Muhammad.