From 7197f3825a1dd1b02fdff965fdbd8fa8645ea040 Mon Sep 17 00:00:00 2001 From: Jakub Czajka Date: Sun, 15 Oct 2023 02:31:56 +0200 Subject: [PATCH] Only deploy files from drive if they are missing. Files on the server should be newer than those on the drive. --- download.yaml | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.39.5