Merge pull request #1229 from manfuin/conditional-sslrootcert

Specify sslrootcert in database options conditionally (fixes #1215)
This commit is contained in:
Hao Liu
2023-04-05 14:18:05 -04:00
committed by GitHub

View File

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