updates for adding pg master standby config to dev portal
diff --git a/tasks/devportal_postgres.yml b/tasks/devportal_postgres.yml
index eb77efa..6cf1367 100644
--- a/tasks/devportal_postgres.yml
+++ b/tasks/devportal_postgres.yml
@@ -1,22 +1,22 @@
---
- block:
- - name: Obtain Devportal pgmaster IP , if not provided
+ - name: Obtain Devportal pgmaster IP from inventory
set_fact:
db_pgmaster_ip: "{{ hostvars[groups['dp-db-pgmaster'][0]][interface_name].ipv4.address }}"
when: db_pgmaster_ip is not defined and groups['dp-db-pgmaster'] is defined
- - name: Obtain Devportal pgstandby IP, if not provided
+ - name: Obtain Devportal pgstandby IP from inventory
set_fact:
db_pgstandby_ip: "{{ hostvars[groups['dp-db-pgstandby'][0]][interface_name].ipv4.address }}"
when: pgstandby_ip is not defined and groups['dc-2-pgstandby'] is defined
- - name: Set pgmaster_ip for DC 2, in cache, if defined
+ - name: Set db_pgmaster_ip from inventory in cache
cache:
key: db_pgmaster_ip
value: '{{ db_pgmaster_ip }}'
when: db_pgmaster_ip is defined
- - name: Set pgstandby_ip for DC 2, in cache, if defined
+ - name: Set db_pgstandby_ip from inventory in cache
cache:
key: db_pgstandby_ip
value: '{{ db_pgstandby_ip }}'