Skip to content

Commit

Permalink
Add free format pg_dump backup parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sdktr authored Jul 10, 2022
1 parent c45a7bd commit 59036fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions roles/backup/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: ''
1 change: 1 addition & 0 deletions roles/backup/tasks/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 59036fc

Please sign in to comment.