summaryrefslogtreecommitdiffstats
path: root/docker/ansible/roles/run_grafana
diff options
context:
space:
mode:
Diffstat (limited to 'docker/ansible/roles/run_grafana')
-rw-r--r--docker/ansible/roles/run_grafana/tasks/main.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/docker/ansible/roles/run_grafana/tasks/main.yml b/docker/ansible/roles/run_grafana/tasks/main.yml
index 230d6ec6..ea4ca8b9 100644
--- a/docker/ansible/roles/run_grafana/tasks/main.yml
+++ b/docker/ansible/roles/run_grafana/tasks/main.yml
@@ -34,6 +34,12 @@
- set_fact:
influxdb_host_ip_mapping: "{ '{{ influxdb_hostname }}': '{{ influxdb_host_ip }}' }"
+- name: Cleanup barometer-grafana cache directory under host
+ file:
+ path: /var/lib/grafana
+ state: absent
+ when: clean_grafana_cache|default(true)|bool == true
+
- name: launch barometer-grafana container
docker_container:
name: bar-grafana