From 297b8548250b95a55b4a8b7b38b7ffbb3ce78f42 Mon Sep 17 00:00:00 2001 From: Ronald Date: Mon, 8 Jul 2024 22:04:06 +0100 Subject: [PATCH] Ensure that dashboard files are named correctly, e.g. end with .json This fixes the previous commit and fixes the last issue I had to work out with this role, dashboards. Dashboards can now be added using the grafana_server_dashboads dictionary. --- tasks/dashboards.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/dashboards.yml b/tasks/dashboards.yml index 5806951..a86f81e 100644 --- a/tasks/dashboards.yml +++ b/tasks/dashboards.yml @@ -24,7 +24,7 @@ - name: Create dashboard JSON files ansible.builtin.copy: content: "{{ item.value.json }}" - dest: "{{ grafana_server_paths_dashboards }}/{{ item.value.folder | default('') }}/{{ item.key }}" + dest: "{{ grafana_server_paths_dashboards }}/{{ item.value.folder | default('') }}/{{ item.key }}.json" owner: root group: grafana mode: "0640"