From 12dbc0bacbe72a701ad8aa5b2e21712a26757385 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=B6rg=20Sachse?= <joerg.sachse@slub-dresden.de>
Date: Thu, 2 Mar 2023 12:13:39 +0100
Subject: [PATCH] fix: force git cloning after changes have occurred

---
 tasks/compile_callas_binaries.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tasks/compile_callas_binaries.yml b/tasks/compile_callas_binaries.yml
index 112706c..76612be 100644
--- a/tasks/compile_callas_binaries.yml
+++ b/tasks/compile_callas_binaries.yml
@@ -24,9 +24,11 @@
     repo: "git@git.slub-dresden.de:slub-digitalpreservation/pdfa_webservice.git"
     dest: "/opt/pdfa_webservice/"
     depth: 1
+    force: true
     key_file: "/tmp/id_ed25519_deploykey"
     ssh_opts: "-o StrictHostKeyChecking=accept-new"
 #   delegate_to: 127.0.0.1
+  changed_when: false    # This cannot be idempotent, because later tasks change the repo content.
 
 # - name: copy PDF/A-Webservice Git repo to managed host
 #   ansible.builtin.copy:
-- 
GitLab