escalating priviledge from role
diff --git a/tasks/main.yml b/tasks/main.yml index a70b833..87682b5 100644 --- a/tasks/main.yml +++ b/tasks/main.yml
@@ -1,5 +1,10 @@ --- # tasks file for apigee-opdk-devportal-postgres-config +- name: Construct name of dev portal response file + cache: + key: 'opdk_portal_db_config_file' + value: '{{ opdk_installer_path }}/edge-devportal-response-{{ opdk_version }}-{{ region }}.conf' + - name: Remove the old dev portal db response file file: path: "{{ opdk_portal_db_config_file }}"
diff --git a/templates/devportal-postgres.conf.j2 b/templates/devportal-postgres.conf.j2 index 71794aa..42f3928 100644 --- a/templates/devportal-postgres.conf.j2 +++ b/templates/devportal-postgres.conf.j2
@@ -1,7 +1,5 @@ HOSTIP="$(hostname -i)" - MP_POD={{ opdk_mp_pod | default(default_mp_pod) }} - {# TODO: Build a module that discover the region of the inventory_hostname and update the REGION dynamically #} {% if groups['dc-1'] is defined and inventory_hostname in groups['dc-1'] %} REGION=dc-1 @@ -10,6 +8,5 @@ {% elif groups['dc-3'] is defined and inventory_hostname in groups['dc-3'] %} REGION=dc-3 {% endif %} - PG_PWD={{ devportal_pg_pass | default(pg_pass) }}