From 662780492ce854cf19f19c2d54291169a54fa3bd Mon Sep 17 00:00:00 2001 From: tolerryan <105945216+tolerryan@users.noreply.github.com> Date: Mon, 28 Oct 2024 00:13:04 -0500 Subject: [PATCH] reformat wikmd restore --- roles/ind/wikmd/wikmd-install.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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: