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

Manage Grafana plugins via grafana-cli

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

Authors: Thierry Sallé (@tsalle)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.6.20

Description

Install and remove Grafana plugins.

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:
    - absent
    - present
    default: present
    description:
    - Status of the Grafana plugin.
    - If latest is set, the version parameter will be ignored.

version:
    description:
    - Version of the plugin to install.
    - Default to latest.

grafana_repo:
    description:
    - Grafana repository. If not set, gafana-cli will use the default value C(https://grafana.net/api/plugins).

grafana_plugin_url:
    description:
    - Custom Grafana plugin URL.
    - Requires grafana 4.6.x or later.

grafana_plugins_dir:
    description:
    - Directory where Grafana plugin will be installed.

Outputs

version:
  description: version of the installed / removed plugin.
  returned: allways
  type: string