2022-12-06 16:36:21 +01:00
|
|
|
---
|
2022-12-10 03:21:11 +01:00
|
|
|
- name: Shut down docker
|
2023-05-12 11:58:02 +02:00
|
|
|
systemd:
|
|
|
|
name: docker
|
|
|
|
state: stopped
|
|
|
|
become: true
|
2022-12-10 03:21:11 +01:00
|
|
|
|
2022-12-06 23:16:52 +01:00
|
|
|
- name: Backing up for "{{ inventory_hostname }}"
|
2022-12-06 16:36:21 +01:00
|
|
|
shell:
|
2023-05-12 11:58:02 +02:00
|
|
|
cmd: "rclone sync {{ item }} secret:{{ item }} --transfers 16"
|
|
|
|
loop: "{{ host.backblaze.paths }}"
|
2022-12-06 23:16:52 +01:00
|
|
|
become: true
|
2022-12-10 03:21:11 +01:00
|
|
|
|
2022-12-21 22:28:46 +01:00
|
|
|
- name: Restart docker
|
2023-05-12 11:58:02 +02:00
|
|
|
systemd:
|
|
|
|
name: docker
|
|
|
|
state: started
|
|
|
|
become: true
|