Ansible Collection - infinispan

Build Status

Collection to install Infinispan or Red Hat DataGrid server configurations, with optional remote caches for Keycloak or Red Hat Single Sign-On.

Ansible version compatibility

This collection has been tested against following Ansible versions: >=2.9.10.

Plugins and modules within a collection may be tested with only specific Ansible versions. A collection may contain metadata that identifies these versions.

Installation and Usage

Installing the Collection from Ansible Galaxy

Before using the collection, you need to install it with the Ansible Galaxy CLI:

ansible-galaxy collection install middleware_automation.infinispan

You can also include it in a requirements.yml file and install it via ansible-galaxy collection install -r requirements.yml, using the format:

  - name: middleware_automation.infinispan

The infinispan collection also depends on the following python packages to be present on the controller host:

  • lxml

  • jmespath

A requirement file is provided to install:

pip install -r requirements.txt

Included roles

  • infinispan: performs an installation of Infinispan or DataGrid nodes or cluster, with configuration of static caches.

  • infinispan_cache: creates Infinispan or DataGrid caches at runtime.

Choosing between Red Hat products and upstream project

The infinispan role supports installing Red Hat Datagrid from the Customer Portal, when the following variables are defined:

rhn_username: '<customer_portal_username>'
rhn_password: '<customer_portal_password>'
jdg_enable: True

It is also possible to select which update to install by setting the jdg_version to one of ['8.2.0','8.2.2','8.2.3']

Check the role README for further details.


Infinispan collection v1.0.0 is a Beta release and for Technical Preview. If you have any issues or questions related to collection, please don’t hesitate to contact us on or open an issue on


Apache License v2.0 or later

See LICENSE to view the full text.