blob: 9cdb738f05697cda3b50059e31260ec5863e5ef1 [file] [log] [blame]
---
# tasks file for /Users/carlosfrias/apigee-workspace/opdk-workspace/apigee-opdk-setup-postgresql-remove
- name: Construct uuid for master,standby
set_fact:
master_standby_uuid: "{{ hostvars[groups[pgmaster_group_name][0]].edge_ps_self.uUID }},{{ hostvars[groups[pgstandby_group_name][0]].edge_ps_self.uUID }}"
- name: Remove postgres to consumer groups
uri:
user: '{{ opdk_user_email }}'
password: '{{ opdk_user_pass }}'
method: DELETE
url: http://{{ local_mgmt_ip }}:8080/v1/analytics/groups/ax/{{ ax_group }}/consumer-groups/{{ consumer_group }}/datastores/{{ master_standby_uuid }}
body_format: json
- name: Remove postgres server
uri:
user: '{{ opdk_user_email }}'
password: '{{ opdk_user_pass }}'
method: DELETE
body_format: json
url: http://{{ local_mgmt_ip }}:8080/v1/analytics/groups/ax/{{ ax_group }}/servers?uuid={{ master_standby_uuid}}&type={{ hostvars[groups[pgmaster_group_name][0]].edge_ps_self.type[0] }}