Skip to content
This repository was archived by the owner on Mar 13, 2024. It is now read-only.

Commit 19deaea

Browse files
Wout van Heeswijkdimavin
authored andcommitted
dashboard check should run on localhost (cloudalchemy#119)
The check for local dashboards should run on localhost.
1 parent 514ff8a commit 19deaea

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tasks/main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,13 @@
7575
- grafana_notifications
7676

7777
- name: "Check if there are any dashboards in {{ grafana_dashboards_dir }}"
78+
become: false
7879
find:
7980
paths: "{{ grafana_dashboards_dir }}"
8081
patterns: '*.json'
8182
register: found_dashboards
83+
delegate_to: localhost
84+
run_once: true
8285

8386
- include: dashboards.yml
8487
when: grafana_dashboards | length > 0 or found_dashboards.matched > 0

0 commit comments

Comments
 (0)