updated pg ip logic
diff --git a/tasks/main.yml b/tasks/main.yml
index 5c11244..8e6a42d 100644
--- a/tasks/main.yml
+++ b/tasks/main.yml
@@ -6,11 +6,9 @@
path: "{{ apigee_installation_home }}/data/apigee-postrgresql"
state: absent
- - name: Restart postgres
- shell: "{{ apigee_service }} apigee-postgresql start"
-
- name: Postgres replication standby
shell: '{{ apigee_service }} apigee-postgresql setup-replication-on-standby -f {{ opdk_installation_config_file }}'
+ register: replication_output
rescue:
- name: Determine if max_wal_senders value must be updated
@@ -19,6 +17,7 @@
- name: Postgres replication standby
shell: '{{ apigee_service }} apigee-postgresql setup-replication-on-standby -f {{ opdk_installation_config_file }}'
+ register: replication_output
- name: Validate postgres replication standby
shell: '{{ apigee_service }} apigee-postgresql postgres-check-standby'