diff --git a/pottwal.yml b/pottwal.yml
index d1666a1..bc784fc 100644
--- a/pottwal.yml
+++ b/pottwal.yml
@@ -134,7 +134,7 @@
     - name: Fail if prosody data dir does not exist
       ansible.builtin.fail:
         msg: "prosody data dir is missing, please restore from the backup!"
-      when: not prosody.stat.exists
+      when: not prosody_dir.stat.exists
 
     - name: Ensure container for prosody XMPP server is running
       docker_container: