mirror of
https://gitea.0xace.cc/ansible-galaxy/postgresql.git
synced 2024-11-25 00:06:42 +00:00
fix backup/restore and update vars
This commit is contained in:
parent
ef13bdb04d
commit
a933eecdd1
@ -24,6 +24,8 @@ postgresql_cacert_ca_trust_anchors_update: true
|
||||
## WAL-G backup and restore options
|
||||
postgresql_wal_g_install: false
|
||||
postgresql_wal_g_backup_enable: false
|
||||
postgresql_wal_g_backup_permanent_enable: false
|
||||
postgresql_wal_g_backup_retention_enable: false
|
||||
postgresql_wal_g_restore_from_backup: false
|
||||
postgresql_wal_g_force_delete_and_restore: false
|
||||
postgresql_wal_g_config_name: ".walg.json"
|
||||
@ -83,10 +85,10 @@ postgresql_default_parameters:
|
||||
hot_standby: 'off'
|
||||
|
||||
postgresql_backup_parameters:
|
||||
archive_command: "{{ postgresql_archive_command if postgresql_wal_g_backup_enable else 'cd .' }}"
|
||||
archive_command: "{{ postgresql_archive_command if postgresql_wal_g_install else 'cd .' }}"
|
||||
|
||||
postgresql_restore_parameters:
|
||||
restore_command: "{{ postgresql_restore_command if postgresql_wal_g_backup_enable else 'cd .' }}"
|
||||
restore_command: "{{ postgresql_restore_command if (postgresql_wal_g_install or postgresql_wal_g_restore_from_backup) else 'cd .' }}"
|
||||
|
||||
postgresql_restore_pitr_parameters:
|
||||
recovery_target_time: "{{ postgresql_wal_g_pitr }}"
|
||||
|
Loading…
Reference in New Issue
Block a user