diff --git a/test/integration-test.yml b/test/integration-test.yml
index 11878109f907c8c4be6f1b1a3363c66f1c94dfe3..8a403fd0f5f2a8550e87d6e439a288aff4a2dac6 100644
--- a/test/integration-test.yml
+++ b/test/integration-test.yml
@@ -30,14 +30,14 @@
       slurp:
         src: "/artifacts/pytest.xml"
       register: pytest_xml
-      when: "pytest_xml_stat and pytest_xml_stat.exists"
+      when: "pytest_xml_stat.exists | default(False)"
 
     - name: Store test results locally
       local_action:
         module: copy
         dest: "pytest.xml"
         content: "{{ pytest_xml['content'] | b64decode }}"
-      when: "pytest_xml_stat and pytest_xml_stat.exists"
+      when: "pytest_xml_stat.exists | default(False)"
 
   vars:
     test_image: "registry.git.autistici.org/ai3/float:integration-test"