]> git.ekhem.eu.org Git - turnup.git/commitdiff
Only deploy files from drive if they are missing.
authorJakub Czajka <jakub@ekhem.eu.org>
Sun, 15 Oct 2023 00:31:56 +0000 (02:31 +0200)
committerJakub Czajka <jczajka@google.com>
Sun, 24 Dec 2023 18:46:45 +0000 (19:46 +0100)
Files on the server should be newer than those on the drive.

download.yaml

index 5d05cd46a5a9134f2216722894ab94e7ede5b6ad..545f78ea29e8410565c7699ba4b038b1aa534a59 100644 (file)
@@ -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: