added an additional delete that becomes necessary during certain re-runs of the installation.
diff --git a/installations/dc1/components/opdk-setup-postgres-common.yml b/installations/dc1/components/opdk-setup-postgres-common.yml
index 2c6e586..f00638b 100644
--- a/installations/dc1/components/opdk-setup-postgres-common.yml
+++ b/installations/dc1/components/opdk-setup-postgres-common.yml
@@ -7,6 +7,17 @@
- apigee-opdk-setup-os-postgres
- apigee-opdk-setup-postgres-config
+- hosts: '{{ hosts }}'
+ roles:
+ - apigee-opdk-setup-default-settings
+ tasks:
+ - name: Remove pgdata from pgstandby server
+ become: true
+ file:
+ path: '{{ apigee_installation_home }}/data/apigee-postgresql/pgdata'
+ state: absent
+ when: pg_component is defined and pg_component == 'standby'
+
- include: opdk-install-component.yml
vars:
hosts: '{{ hosts }}'