ansible.builtin.grafana_plugin (v2.9.27) — module

Manage Grafana plugins via grafana-cli

| "added in version" 2.5 of ansible.builtin"

Authors: Thierry Sallé (@seuf)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Install and remove Grafana plugins.

See U(https://grafana.com/docs/plugins/installation/) for upstream documentation.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
---
- name: Install/update Grafana piechart panel plugin
  grafana_plugin:
    name: grafana-piechart-panel
    version: latest
    state: present

Inputs

    
name:
    description:
    - Name of the plugin.
    required: true

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Whether the plugin should be installed.

version:
    description:
    - Version of the plugin to install.
    - Defaults to C(latest).

grafana_repo:
    description:
    - URL to the Grafana plugin repository.
    - 'If omitted, grafana-cli will use the default value: U(https://grafana.com/api/plugins).'

grafana_plugin_url:
    description:
    - Full URL to the plugin zip file instead of downloading the file from U(https://grafana.com/api/plugins).
    - Requires grafana 4.6.x or later.

grafana_plugins_dir:
    description:
    - Directory where the Grafana plugin will be installed.
    - If omitted, defaults to C(/var/lib/grafana/plugins).

Outputs

version:
  description: version of the installed/removed/updated plugin.
  returned: always
  type: str