change command to shells
This commit is contained in:
@@ -109,11 +109,12 @@
|
|||||||
# register: output
|
# register: output
|
||||||
|
|
||||||
- name: Restore Wikmd Dir
|
- name: Restore Wikmd Dir
|
||||||
command: "restic --password-file ./.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target /data/wikmd restore latest"
|
shell: |
|
||||||
args:
|
restic --password-file ./.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target /data/wikmd restore latest
|
||||||
chdir: /home/restic
|
args:
|
||||||
creates: /data/wikmd
|
chdir: /home/restic
|
||||||
when: not stat.wikmd.stat.exists or not stat.wikmd.stat.isdir
|
creates: /data/wikmd
|
||||||
|
when: not stat.wikmd.stat.exists or not stat.wikmd.stat.isdir
|
||||||
|
|
||||||
- name: Reload systemd daemon
|
- name: Reload systemd daemon
|
||||||
systemd:
|
systemd:
|
||||||
|
|||||||
Reference in New Issue
Block a user