community.general.kibana_plugin module – Manage Kibana plugins

Note

This module is part of the community.general collection (version 7.5.2).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install community.general.

To use it in a playbook, specify: community.general.kibana_plugin.

Synopsis

  • This module can be used to manage Kibana plugins.

Aliases: database.misc.kibana_plugin

Parameters

Parameter

Comments

allow_root

boolean

added in community.general 2.3.0

Whether to allow kibana and kibana-plugin to be run as root. Passes the --allow-root flag to these commands.

Choices:

  • false ← (default)

  • true

force

boolean

Delete and re-install the plugin. Can be useful for plugins update.

Choices:

  • false ← (default)

  • true

name

string / required

Name of the plugin to install.

plugin_bin

path

Location of the Kibana binary.

Default: "/opt/kibana/bin/kibana"

plugin_dir

path

Your configured plugin directory specified in Kibana.

Default: "/opt/kibana/installedPlugins/"

state

string

Desired state of a plugin.

Choices:

  • "present" ← (default)

  • "absent"

timeout

string

Timeout setting: 30s, 1m, 1h etc.

Default: "1m"

url

string

Set exact URL to download the plugin from.

For local file, prefix its absolute path with file://

version

string

Version of the plugin to be installed.

If plugin exists with previous version, plugin will not be updated unless force is set to true.

Attributes

Attribute

Support

Description

check_mode

Support: full

Can run in check_mode and return changed status prediction without modifying target.

diff_mode

Support: none

Will return details on what has changed (or possibly needs changing in check_mode), when in diff mode.

Examples

- name: Install Elasticsearch head plugin
  community.general.kibana_plugin:
    state: present
    name: elasticsearch/marvel

- name: Install specific version of a plugin
  community.general.kibana_plugin:
    state: present
    name: elasticsearch/marvel
    version: '2.3.3'

- name: Uninstall Elasticsearch head plugin
  community.general.kibana_plugin:
    state: absent
    name: elasticsearch/marvel

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

cmd

string

the launched command during plugin management (install / remove)

Returned: success

name

string

the plugin name to install or remove

Returned: success

state

string

the state for the managed plugin

Returned: success

stderr

string

the command stderr

Returned: success

stdout

string

the command stdout

Returned: success

timeout

string

the timeout for plugin download

Returned: success

url

string

the url from where the plugin is installed from

Returned: success

Authors

  • Thierno IB. BARRY (@barryib)