From b5569409e1339b1f83482fc9db8e53f917d7fc19 Mon Sep 17 00:00:00 2001 From: tolerryan <105945216+tolerryan@users.noreply.github.com> Date: Mon, 28 Oct 2024 00:28:59 -0500 Subject: [PATCH] change command to shells --- roles/ind/wikmd/wikmd-install.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/roles/ind/wikmd/wikmd-install.yml b/roles/ind/wikmd/wikmd-install.yml index aedf75e..0f90bf4 100644 --- a/roles/ind/wikmd/wikmd-install.yml +++ b/roles/ind/wikmd/wikmd-install.yml @@ -109,11 +109,12 @@ # 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 - when: not stat.wikmd.stat.exists or not stat.wikmd.stat.isdir + 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 - name: Reload systemd daemon systemd: