From 3f76e19c4d2af7bc12112eee762c306b4de76d62 Mon Sep 17 00:00:00 2001 From: David Kilias Date: Fri, 11 Nov 2022 20:25:22 +0100 Subject: [PATCH] fixup! feat: add grafana container to pottwal --- host-pottwal.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/host-pottwal.yml b/host-pottwal.yml index fe0f16a..ae833e0 100644 --- a/host-pottwal.yml +++ b/host-pottwal.yml @@ -383,11 +383,16 @@ - name: Ensure the grafana directories exist file: - path: "{{ item }}" - mode: "0755" + path: "{{ item.path }}" + owner: "{{ item.owner | default('root') }}" + mode: "{{ item.mode }}" state: directory with_items: - - "{{ data_dir }}/grafana" + - path: "{{ data_dir }}/grafana" + mode: "0755" + - path: "{{ data_dir }}/grafana/data" + owner: 472 + mode: "0755" - name: Ensure container for grafana is running docker_container: @@ -396,7 +401,7 @@ ports: - "127.0.0.1:{{ grafana_host_port }}:3000" volumes: - - "{{ data_dir }}/grafana:/var/lib/grafana" + - "{{ data_dir }}/grafana/data:/var/lib/grafana" env: TZ: "{{ timezone }}" GF_SECURITY_ADMIN_PASSWORD: "{{ grafana_admin_password }}"