add sslrootcert to database options conditionally (fixes #1215)

This commit is contained in:
Andrii Salnikov
2023-02-09 00:57:19 +01:00
parent 234a10d185
commit ce48812921

View File

@@ -8,7 +8,9 @@ DATABASES = {
'HOST': '{{ awx_postgres_host }}',
'PORT': "{{ awx_postgres_port }}",
'OPTIONS': { 'sslmode': '{{ awx_postgres_sslmode }}',
{%- if awx_postgres_sslmode == 'verify-ca' or awx_postgres_sslmode == 'verify-full' %}
'sslrootcert': '{{ ca_trust_bundle }}',
{%- endif %}
},
}
}