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