From 236f45dfec929fee6fb2bc4f8b8e70b0ba800070 Mon Sep 17 00:00:00 2001
From: Alexander Dahl <alex@netz39.de>
Date: Thu, 20 Oct 2022 21:57:33 +0200
Subject: [PATCH] :bug: Fix variable name

Suggested-by: Stefan Haun <tux@netz39.de>
---
 pottwal.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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: