19 lines
356 B
YAML
19 lines
356 B
YAML
---
|
|
- name: Shut down docker
|
|
systemd:
|
|
name: docker
|
|
state: stopped
|
|
become: true
|
|
|
|
- name: Backing up for "{{ inventory_hostname }}"
|
|
shell:
|
|
cmd: "rclone sync {{ item }} secret:{{ item }} --transfers 16"
|
|
loop: "{{ host.backblaze.paths }}"
|
|
become: true
|
|
|
|
- name: Restart docker
|
|
systemd:
|
|
name: docker
|
|
state: started
|
|
become: true
|