ansible / ansible.builtin / v2.9.4 / module / grafana_plugin Manage Grafana plugins via grafana-cli | "added in version" 2.5 of ansible.builtin" Authors: Thierry Sallé (@seuf) preview | supported by communityansible.builtin.grafana_plugin (v2.9.4) — module
pip
Install with pip install ansible==2.9.4
Install and remove Grafana plugins.
See U(https://grafana.com/docs/plugins/installation/) for upstream documentation.
--- - name: Install/update Grafana piechart panel plugin grafana_plugin: name: grafana-piechart-panel version: latest state: present
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).
version: description: version of the installed/removed/updated plugin. returned: always type: str