From: Jakub Czajka Date: Sun, 15 Oct 2023 00:31:56 +0000 (+0200) Subject: Only deploy files from drive if they are missing. X-Git-Url: https://git.ekhem.eu.org/?a=commitdiff_plain;h=7197f3825a1dd1b02fdff965fdbd8fa8645ea040;p=turnup.git Only deploy files from drive if they are missing. Files on the server should be newer than those on the drive. --- diff --git a/download.yaml b/download.yaml index 5d05cd4..545f78e 100644 --- a/download.yaml +++ b/download.yaml @@ -40,6 +40,8 @@ become: true - name: Move to destination command: mv "/tmp/{{ item.name }}" "{{ item.dest }}/" + args: + creates: "{{ item.dest }}/{{ item.name }}" become: true - name: Stat destination stat: