From 59036fc373b2394a1c22fe1a60ba421a95e59d65 Mon Sep 17 00:00:00 2001 From: Stefan de Kooter Date: Fri, 8 Jul 2022 00:04:13 +0200 Subject: [PATCH] Add free format pg_dump backup parameter --- roles/backup/defaults/main.yml | 3 +++ roles/backup/tasks/postgres.yml | 1 + 2 files changed, 4 insertions(+) diff --git a/roles/backup/defaults/main.yml b/roles/backup/defaults/main.yml index e0ffa8679..0acfce8d2 100644 --- a/roles/backup/defaults/main.yml +++ b/roles/backup/defaults/main.yml @@ -19,3 +19,6 @@ clean_backup_on_delete: false # Variable to signal that this role is being run as a finalizer finalizer_run: false + +# Allow additional parameters to be added to the pg_dump backup command +pg_dump_suffix: '' diff --git a/roles/backup/tasks/postgres.yml b/roles/backup/tasks/postgres.yml index 2a293f1d7..84db5b498 100644 --- a/roles/backup/tasks/postgres.yml +++ b/roles/backup/tasks/postgres.yml @@ -91,6 +91,7 @@ -d {{ awx_postgres_database }} -p {{ awx_postgres_port }} -F custom + {{ pg_dump_suffix }} no_log: "{{ no_log }}" - name: Write pg_dump to backup on PVC