diff --git a/roles/installer/templates/settings/credentials.py.j2 b/roles/installer/templates/settings/credentials.py.j2 index 9b3241d2c..19208e0bd 100644 --- a/roles/installer/templates/settings/credentials.py.j2 +++ b/roles/installer/templates/settings/credentials.py.j2 @@ -11,13 +11,20 @@ DATABASES = { {% if awx_postgres_sslmode in ['verify-ca', 'verify-full'] %} 'sslrootcert': '{{ ca_trust_bundle }}', {% endif %} + }, + } +} + +LISTENER_DATABASES = { + 'default': { + 'OPTIONS': { {% if postgres_keepalives %} - 'keepalives': 1, - 'keepalives_idle': {{ postgres_keepalives_idle }}, - 'keepalives_interval': {{ postgres_keepalives_interval }}, - 'keepalives_count': {{ postgres_keepalives_count }}, + 'keepalives': 1, + 'keepalives_idle': {{ postgres_keepalives_idle }}, + 'keepalives_interval': {{ postgres_keepalives_interval }}, + 'keepalives_count': {{ postgres_keepalives_count }}, {% else %} - 'keepalives': 0, + 'keepalives': 0, {% endif %} }, }