Skip to content

Commit

Permalink
Merge pull request #980 from sdktr/958_pgdump_command_customization
Browse files Browse the repository at this point in the history
Fix 958: allow pg_dump backup command customization
  • Loading branch information
shanemcd authored Jul 11, 2022
2 parents c5db0e7 + 59036fc commit dd53a1d
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 dd53a1d

Please sign in to comment.