diff --git a/roles/installer/templates/settings/credentials.py.j2 b/roles/installer/templates/settings/credentials.py.j2 index 3f8f1380..53e8fde1 100644 --- a/roles/installer/templates/settings/credentials.py.j2 +++ b/roles/installer/templates/settings/credentials.py.j2 @@ -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 %} }, } }