When installing Automation hub/ Ansible Automation Platform Task fails at Preflight check - Ensure that psycopg2 python library is installed.

Solution Verified - Updated -

Issue

  • When trying to install Automation hub/ Ansible Automation Platform Task fails at Preflight check - Ensure that psycopg2 python library is installed.

    TASK [ansible.automation_platform_installer.preflight : Preflight check - Ensure that psycopg2 python library is installed]
    
    fatal: [-> {{ groups['automationcontroller'][0] }}]: FAILED! => {"msg": "The field 'delegate_to' has an invalid value, which includes an undefined 
    variable. The error was: list object has no element 0\n\nThe error appears to be in '/software/Ansible_Tower/ansible-automation-platform-setup-bundle- 
    2.2.0- 7/collections/ansible_collections/ansible/automation_platform_installer/roles/preflight/tasks/main.yml': line 149, column 5, but may\nbe elsewhere 
    in the file depending on the exact 
    syntax problem.\n\nThe offending line appears to be:\n\n- block:\n  - name: Preflight check - Ensure that psycopg2 python library is installed\n here\n"}
    

Environment

  • Automation hub
  • Ansible Automation Platform 2.2

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