updated pg ip logic
diff --git a/tasks/main.yml b/tasks/main.yml
index 001d1cc..9f6c406 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -1,6 +1,10 @@
---
# tasks file for apigee-opdk-setup-postgres-standby
- block:
+ - name: Clear the pgdata folder
+ file:
+ path: "{{ apigee_installation_home }}/data/apigee-postrgresql/pgdata"
+ state: absent
- name: Postgres replication standby
shell: '{{ apigee_service }} apigee-postgresql setup-replication-on-standby -f {{ opdk_installation_config_file }}'