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 }}"