diff options
author | binary <me@rgoncalves.se> | 2021-01-22 21:37:30 +0100 |
---|---|---|
committer | binary <me@rgoncalves.se> | 2021-01-22 21:37:35 +0100 |
commit | 2462acfd5d5a90403fd542ad4afd15e0a04da99f (patch) | |
tree | 5dbfe4cd03b65c28c25737ee60066126007136d1 /roles/grafana/tasks | |
parent | 079cdda94993b0c627d72213f1642f1836e5371a (diff) | |
download | infrastructure-2462acfd5d5a90403fd542ad4afd15e0a04da99f.tar.gz |
Enforce grafana data dir
Diffstat (limited to 'roles/grafana/tasks')
-rw-r--r-- | roles/grafana/tasks/main.yml | 8 |
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 |