Fixed backblaze backup

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
This commit is contained in:
TuDatTr
2022-12-06 23:16:52 +01:00
parent b371e246a9
commit b36f97fa65
5 changed files with 97 additions and 8 deletions

View File

@@ -1,6 +1,7 @@
---
- name: Loop over subelements of the dictionary
- name: Backing up for "{{ inventory_hostname }}"
shell:
cmd: "rclone -vv sync {{ item.1 }} secret:{{ item.1 }}"
cmd: "rclone sync {{ item.1 }} secret:{{ item.1 }}"
when: item.0.key == inventory_hostname
loop: "{{ backblaze_paths | dict2items | subelements('value') }}"
become: true