diff --git a/test/integration-test.yml b/test/integration-test.yml
index e6a5723fbdd0940cab5a622bec1ae63c32aefa7f..3000cd1e45551b36db3a6de11852de8861d8ad38 100644
--- a/test/integration-test.yml
+++ b/test/integration-test.yml
@@ -22,7 +22,8 @@
     - name: Run tests
       command: "podman run --rm --network host --mount type=bind,source=/tmp/test-config.yml,destination=/test-config.yml --mount type=bind,source=/artifacts,destination=/artifacts {{ test_image }}"
 
-    - stat:
+    - name: Check existence of pytest.xml
+      stat:
         path: "/artifacts/pytest.xml"
       register: pytest_xml_stat
 
@@ -30,14 +31,14 @@
       slurp:
         src: "/artifacts/pytest.xml"
       register: pytest_xml
-      when: "pytest_xml_stat.exists | default(False)"
+      when: "pytest_xml_stat.stat.exists"
 
     - name: Store test results locally
       local_action:
         module: copy
         dest: "{{ lookup('env', 'CI_PROJECT_DIR') | default('..') }}/pytest.xml"
         content: "{{ pytest_xml['content'] | b64decode }}"
-      when: "pytest_xml_stat.exists | default(False)"
+      when: "pytest_xml_stat.stat.exists"
 
   vars:
     test_image: "registry.git.autistici.org/ai3/float:integration-test"