Error: 'unable to connect to database: root certificate file "/root/.postgresql/root.crt" does not exist' while installing Ansible Automation Platform

Solution Verified - Updated -

Issue

  • Red Hat Ansible Automation Platform installer fails when using an external unmanaged database and specifying verify-full for option pg_sslmode
  • When using custom TLS certificates and setting verify-full for pg_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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content