From 43fecd7f9e70facd8ca4ff4960f1b2f361ec79a7 Mon Sep 17 00:00:00 2001 From: Nemental <15136847+Nemental@users.noreply.github.com> Date: Tue, 16 Jan 2024 10:46:00 +0100 Subject: [PATCH] Squashed commit of telekom-mms/ansible-role-grafana#20: commit ec2714aa4cec985e1b99abd28852a5ee8efef04e Author: Nemental <15136847+Nemental@users.noreply.github.com> Date: Fri Dec 8 09:59:56 2023 +0100 fix: remove url params commit 905a6a158620b41a19d50bbdd1861b57d5feb19d Merge: 54cfb58 cd0edb3 Author: Nemental <15136847+Nemental@users.noreply.github.com> Date: Fri Dec 8 09:14:59 2023 +0100 Merge branch 'main' into feat/dashboard-by-org-name commit 54cfb58025792895bbcd5cce01ab207d8202c7e4 Author: Nemental <15136847+Nemental@users.noreply.github.com> Date: Thu Nov 30 10:45:16 2023 +0100 docs: add org_name to readme commit 9895c1fc289f90a644447047b284c05290878dfc Author: Nemental <15136847+Nemental@users.noreply.github.com> Date: Thu Nov 30 10:44:53 2023 +0100 fix: add org_name for dashboard task --- roles/grafana/README.md | 1 + roles/grafana/tasks/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/roles/grafana/README.md b/roles/grafana/README.md index fb46493f..2236684d 100644 --- a/roles/grafana/README.md +++ b/roles/grafana/README.md @@ -55,6 +55,7 @@ Configure Grafana organizations, dashboards, folders, datasources, teams and use | skip_version_check | no | | [**grafana_dashboards**](https://docs.ansible.com/ansible/latest/collections/community/grafana/grafana_dashboard_module.html) | | org_id | no | +| org_name | no | | folder | no | | state | no | | slug | no | diff --git a/roles/grafana/tasks/main.yml b/roles/grafana/tasks/main.yml index 37967001..1d1f404d 100644 --- a/roles/grafana/tasks/main.yml +++ b/roles/grafana/tasks/main.yml @@ -80,6 +80,7 @@ - name: Manage dashboard community.grafana.grafana_dashboard: org_id: "{{ dashboard.org_id | default(omit) }}" + org_name: "{{ dashboard.org_name | default(omit) }}" folder: "{{ dashboard.folder | default(omit) }}" state: "{{ dashboard.state | default(omit) }}" slug: "{{ dashboard.slug | default(omit) }}"