fix formatting error
This commit is contained in:
@@ -80,18 +80,18 @@
|
||||
# project_src: /home/docker/
|
||||
# register: output
|
||||
|
||||
- name: Check if docker config directory exists
|
||||
stat:
|
||||
path: /home/docker/qbittorrent
|
||||
register: wikmd_stat
|
||||
- name: Check if docker config directory exists
|
||||
stat:
|
||||
path: /home/docker/qbittorrent
|
||||
register: grail_stat
|
||||
|
||||
- name: Restore docker config Dir
|
||||
shell: |
|
||||
restic --password-file ./.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target / restore latest
|
||||
args:
|
||||
chdir: /home/docker
|
||||
creates: /home/docker/qbitorrent
|
||||
when: not wikmd_stat.stat.exists or not wikmd_stat.stat.isdir
|
||||
- name: Restore docker config Dir
|
||||
shell: |
|
||||
restic --password-file ./.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target / restore latest
|
||||
args:
|
||||
chdir: /home/docker
|
||||
creates: /home/docker/qbitorrent
|
||||
when: not grail_stat.stat.exists or not grail_stat.stat.isdir
|
||||
|
||||
- name: Reload systemd daemon
|
||||
systemd:
|
||||
|
||||
Reference in New Issue
Block a user