Skip to content

Commit

Permalink
Merge branch 'main' into vzhuravlev/idempotent_with_handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ishanjainn authored Sep 11, 2023
2 parents ef257c4 + dfb879c commit 41129ba
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions roles/grafana/tasks/dashboards.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
---
- name: "Create local grafana dashboard directory"
ansible.builtin.tempfile:
state: directory
register: __tmp_dashboards
changed_when: false

- name: "Download grafana.net dashboards"
become: false
delegate_to: localhost
run_once: true
when: "grafana_dashboards | length > 0"
block:
- name: "Create local grafana dashboard directory"
ansible.builtin.tempfile:
state: directory
register: __tmp_dashboards
changed_when: false

- name: "Download grafana dashboard from grafana.net to local directory"
ansible.builtin.get_url:
url: "https://grafana.com/api/dashboards/{{ item.dashboard_id }}/revisions/{{ item.revision_id }}/download"
Expand Down

0 comments on commit 41129ba

Please sign in to comment.