diff --git a/roles/ind/wikmd/wikmd-install.yml b/roles/ind/wikmd/wikmd-install.yml index 18ea44b..3e46623 100644 --- a/roles/ind/wikmd/wikmd-install.yml +++ b/roles/ind/wikmd/wikmd-install.yml @@ -109,10 +109,11 @@ # register: output - name: Restore Wikmd Dir - command: restic --password-file ./.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target /data/wikmd restore latest - args: - chdir: /home/restic - creates: /data/wikmd + command: restic --password-file ./.resticpassword -r sftp:misamisa://home/restic/$(hostname) --target /data/wikmd restore latest + args: + chdir: /home/restic + creates: /data/wikmd + when: not stat.wikmd.stat.exists or not stat.wikmd.stat.isdir - name: Reload systemd daemon systemd: