Skip to content

Commit 209f194

Browse files
authored
Merge pull request #128 from sdarwin/group_vars
grafana_dashboards variable
2 parents dddc35c + ec150bd commit 209f194

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

group_vars/grafana/vars.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ grafana_ini:
1212
metrics:
1313
enabled: true
1414

15-
datasources:
16-
- name: "Prometheus"
17-
type: "prometheus"
18-
access: "proxy"
19-
url: "http://{{ ansible_host }}:9090"
20-
isDefault: true
15+
grafana_datasources:
16+
- name: "Prometheus"
17+
type: "prometheus"
18+
access: "proxy"
19+
url: "http://{{ ansible_host | default(inventory_hostname) }}:9090"
20+
isDefault: true
21+
22+
grafana_dashboards: []

0 commit comments

Comments
 (0)