From 89b31468a3cda61414d6d11b6d2c799fa3946c52 Mon Sep 17 00:00:00 2001 From: Jakub Czajka Date: Sat, 6 Dec 2025 17:47:21 +0100 Subject: [PATCH] Skip ansible scripts when clearing /tmp. Ansible scripts for performing backup are put in /tmp. Removing them inside the script breaks the workflow. --- backup.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backup.yaml b/backup.yaml index 6e1a674..41f30d7 100644 --- a/backup.yaml +++ b/backup.yaml @@ -15,7 +15,7 @@ state: latest become: true - name: Clear /tmp - shell: rm --recursive --force /tmp/* + shell: rm --recursive --force /tmp/!\(backup\|sources\).yaml become: true - name: Dump database to /tmp/database command: pg_dumpall --user=postgres --clean --file=/tmp/database -- 2.47.3