b371e246a9
Added backblaze (todo documentation) Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
28 lines
622 B
YAML
28 lines
622 B
YAML
---
|
|
- name: Create Zoneminder directories
|
|
file:
|
|
path: "{{ item }}"
|
|
owner: 1000
|
|
mode: '700'
|
|
state: directory
|
|
loop:
|
|
- "{{ zoneminder_data }}"
|
|
- "{{ zoneminder_config }}"
|
|
become: true
|
|
|
|
# Todo, check if docker compose is running
|
|
# - name: Shut down docker
|
|
# shell:
|
|
# cmd: "docker compose down --remove-orphans"
|
|
# chdir: "{{ docker_compose_dir }}"
|
|
|
|
- name: Copy the compose file
|
|
template:
|
|
src: templates/aya01/compose.yaml
|
|
dest: "{{ docker_compose_dir }}/compose.yaml"
|
|
|
|
- name: Run docker compose
|
|
shell:
|
|
cmd: "docker compose up -d"
|
|
chdir: "{{ docker_compose_dir }}"
|