Repository

ansible-role-for-openJjdk8

Ansible role for OpenJDK8. Available on Ansible Galaxy.

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

Specs

  • VariableDescription
  • openjdk8_app_debianDefines the app to install on Debian based systems i.e. openjdk-8-jdk
  • openjdk8_app_elDefines the app to install on Enterprise Linux (Redhat/CentOS) systems i.e. java-1.8.0-openjdk-devel

README

Ansible Role OpenJDK8

View all Roadmaps  ·  Best Practices  ·  Questions

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

🚀 I'm are always open to your feedback. Please contact as bellow information:

[Contact ]



ko-fi

License

  • Nho Luong (c). All Rights Reserved.🌟