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

@@ -1,9 +1,17 @@
---
- name: Shut down docker
shell:
cmd: "docker compose down --remove-orphans"
chdir: "{{ docker_compose_dir }}"
- name: Backing up for "{{ inventory_hostname }}"
shell:
cmd: "rclone sync {{ item.1 }} secret:{{ item.1 }}"
when: item.0.key == inventory_hostname
loop: "{{ backblaze_paths | dict2items | subelements('value') }}"
become: true
tags:
- backup
- name: Shut down docker
shell:
cmd: "docker compose down --remove-orphans"
chdir: "{{ docker_compose_dir }}"

View File

@@ -3,3 +3,5 @@
- include_tasks: install.yml
- include_tasks: config.yml
- include_tasks: backup.yml
tags:
- backup