Error: 'unable to connect to database: root certificate file "/root/.postgresql/root.crt" does not exist' while installing Ansible Automation Platform
Issue
- Red Hat Ansible Automation Platform installer fails when using an external unmanaged database and specifying
verify-full
for optionpg_sslmode
- When using custom TLS certificates and setting
verify-full
forpg_sslmode
while using an external unmanaged database, the installation will fail during the preflight check -
The installation will fail during preflight with the following error message:
FAILED! => {"changed": false, "msg": "unable to connect to database: root certificate file \"/root/.postgresql/root.crt\" does not exist\nEither provide the file or change sslmode to disable server certificate verification.\n"}
Environment
- Red Hat Ansible Automation Platform 2.4
- Using an external unmanaged PostgreSQL database with custom TLS certificates
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.