aboutsummaryrefslogtreecommitdiffstats
path: root/roles/grafana/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/grafana/tasks')
-rw-r--r--roles/grafana/tasks/main.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/grafana/tasks/main.yml b/roles/grafana/tasks/main.yml
index 5df8fa3..919f15e 100644
--- a/roles/grafana/tasks/main.yml
+++ b/roles/grafana/tasks/main.yml
@@ -7,6 +7,14 @@
- name: install grafana
package: name=grafana state=present
+- name: ensure grafana dir exists
+ file:
+ path: "{{ grafana_dir }}"
+ owner: "{{ grafana_user }}"
+ group: "{{ grafana_group }}"
+ mode: 0640
+ state: directory
+
- name: generate grafana configuration
template:
src: grafana.ini.j2
remember that computers suck.