Skip to content

Commit

Permalink
fix: dashboard import play
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh6790 committed Mar 11, 2024
1 parent 0e8c858 commit 272d172
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions press/playbooks/roles/grafana/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
src: '{{ item }}'
dest: '/home/frappe/grafana/data/dashboards/{{ item }}'
mode: 0755
remote_src: yes
with_items:
- docker_container.json
- mysql_overview.json
Expand Down Expand Up @@ -103,11 +102,12 @@
state: restarted

- name: Import Grfana Dashboard
grafana_dashboard:
grafana_url: 'https://{{ server }}'
community.grafana.grafana_dashboard:
grafana_url: 'https://{{ server }}/grafana'
grafana_user: admin
grafana_password: '{{ grafana_password }}'
state: present
org_id: 1
overwrite: yes
path: '/home/frappe/grafana/data/dashboards/{{ item }}'
with_items:
Expand Down

0 comments on commit 272d172

Please sign in to comment.