Skip to content
Snippets Groups Projects
Unverified Commit ee18a8e1 authored by Paweł Krupa's avatar Paweł Krupa Committed by GitHub
Browse files

Merge pull request #21 from cloudalchemy/issue9

add datasources in yaml file
parents f241aab7 b17b5d5c
No related branches found
No related tags found
No related merge requests found
......@@ -29,6 +29,8 @@
- "{{ grafana_data_dir }}"
- "{{ grafana_data_dir }}/dashboards"
- "{{ grafana_data_dir }}/plugins"
- "{{ grafana_data_dir }}/provisioning"
- "{{ grafana_data_dir }}/provisioning/datasources"
- name: Enable grafana system service
systemd:
......
......@@ -20,3 +20,12 @@
with_items: "{{ grafana_datasources }}"
no_log: True
when: datasources.content == "[]"
- name: Create datasources file
copy:
dest: "{{ grafana_data_dir }}/provisioning/datasources/ansible.yml"
content: |
delete_datasources: []
datasources:
{{ grafana_datasources | to_nice_yaml }}
backup: no
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment