add grafana role

This commit is contained in:
Sergey Malyuk
2025-12-12 14:32:28 +03:00
parent 7c6e8fede3
commit b1bfcfb598
30 changed files with 3425 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
---
- name: "Create plugin directory"
ansible.builtin.file:
path: "{{ plugins_dir }}"
state: directory
owner: "{{ grafana_user }}"
group: "{{ grafana_group }}"
mode: "0755"
- name: "Install Grafana plugins"
community.grafana.grafana_plugin:
name: "{{ plugin.name }}"
version: "{{ plugin.version }}"
grafana_plugins_dir: "{{ plugins_dir }}"
state: "{{ plugin.state | default('present') }}"
notify: "(Re)start and enable Grafana"