fixup! feat: add grafana container to pottwal
This commit is contained in:
parent
cbf8cce0d3
commit
3f76e19c4d
1 changed files with 9 additions and 4 deletions
|
@ -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 }}"
|
||||
|
|
Loading…
Reference in a new issue