commit 268cd1bf9a799ac9a8f67a0dbea0430e9ec23340
parent e28e5e0279b58f71377c2d5000156bd28f2157e7
Author: Florian Dold <florian@dold.me>
Date: Fri, 29 May 2026 14:07:38 +0200
address deprecation
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/roles/database/tasks/main.yml b/roles/database/tasks/main.yml
@@ -46,12 +46,11 @@
versioning_schema_exists: "{{ schema_check.rowcount | default(0) > 0 }}"
when: exchange_db_exists | bool
-# Check if the local backup file exists
- name: Check if postgres backup file exists locally
- local_action:
- module: stat
- follow: yes
+ ansible.builtin.stat:
path: "{{ role_path }}/files/postgres-backup.sql.gz"
+ follow: yes
+ delegate_to: localhost
register: backup_file_status
- name: Set local backup existence fact