fixup! feat: add grafana container to pottwal

This commit is contained in:
David Kilias 2022-11-11 20:25:22 +01:00
parent cbf8cce0d3
commit 3f76e19c4d

View file

@ -383,11 +383,16 @@
- name: Ensure the grafana directories exist - name: Ensure the grafana directories exist
file: file:
path: "{{ item }}" path: "{{ item.path }}"
mode: "0755" owner: "{{ item.owner | default('root') }}"
mode: "{{ item.mode }}"
state: directory state: directory
with_items: 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 - name: Ensure container for grafana is running
docker_container: docker_container:
@ -396,7 +401,7 @@
ports: ports:
- "127.0.0.1:{{ grafana_host_port }}:3000" - "127.0.0.1:{{ grafana_host_port }}:3000"
volumes: volumes:
- "{{ data_dir }}/grafana:/var/lib/grafana" - "{{ data_dir }}/grafana/data:/var/lib/grafana"
env: env:
TZ: "{{ timezone }}" TZ: "{{ timezone }}"
GF_SECURITY_ADMIN_PASSWORD: "{{ grafana_admin_password }}" GF_SECURITY_ADMIN_PASSWORD: "{{ grafana_admin_password }}"