diff --git a/defaults/main.yaml b/defaults/main.yaml index ed00920..014d2bd 100644 --- a/defaults/main.yaml +++ b/defaults/main.yaml @@ -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 }}"