diff --git a/roles/ind/wikmd/wikmd-install.yml b/roles/ind/wikmd/wikmd-install.yml index 0f90bf4..37e8b67 100644 --- a/roles/ind/wikmd/wikmd-install.yml +++ b/roles/ind/wikmd/wikmd-install.yml @@ -108,13 +108,18 @@ # project_src: /home/docker/ # register: output + - name: Check if wikmd directory exists + stat: + path: /data/wikmd + register: wikmd_stat + - name: Restore Wikmd Dir shell: | 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 + when: not wikmd_stat.stat.exists or not wikmd_stat.stat.isdir - name: Reload systemd daemon systemd: