Added syncthing,grafana and wireguard

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2022-12-10 03:21:11 +01:00
parent cbb3bfd854
commit 2ba4259dd6
10 changed files with 106 additions and 14 deletions

View File

@@ -20,12 +20,34 @@
file:
path: "{{ item }}"
owner: 911
mode: '766'
mode: '755'
state: directory
loop:
- "{{ zoneminder_data }}"
become: true
- name: Create syncthing directory
file:
path: "{{ item }}"
owner: 1000
mode: '755'
state: directory
loop:
- "{{ syncthing_data }}"
become: true
- name: Create grafana data directory
file:
path: "{{ item }}"
owner: 1000
mode: '755'
state: directory
loop:
- "{{ grafana_data }}"
- "{{ grafana_log }}"
- "{{ grafana_config}}"
become: true
# Todo, check if docker compose is running
# - name: Shut down docker
# shell:
@@ -36,8 +58,12 @@
template:
src: templates/aya01/compose.yaml
dest: "{{ docker_compose_dir }}/compose.yaml"
tags:
- reload_compose
- name: Run docker compose
shell:
cmd: "docker compose up -d"
chdir: "{{ docker_compose_dir }}"
tags:
- reload_compose