Ansible Automation Platform installation: An Automation Gateway host must exist in inventory

,

Hi,

I’m trying to install Ansible Automation Platform (AAP) using the setup bundle ansible-automation-platform-setup-bundle-2.5-2-x86_64, but I’m running into an issue.

When I run ./setup.sh -i inventory, I get the following error:

TASK [ansible.automation_platform_installer.check_config_static : Ensure Gateway host exists] ***
fatal: [aap-01.test.com -> localhost]: FAILED! => {"changed": false, "msg": "An Automation Gateway host must exist in inventory."}

NO MORE HOSTS LEFT *************************************************************

PLAY RECAP *********************************************************************
aap-01.test.com            : ok=4    changed=0    unreachable=0    failed=1    skipped=25   rescued=0    ignored=0
localhost                  : ok=0    changed=0    unreachable=0    failed=0    skipped=1    rescued=0    ignored=0

[error] Oops! An error occurred while running setup.
[warn] Setup log saved to ./setup.log.

Here’s my inventory file:

[automationcontroller]
aap-01.test.com

[database]

[automationcontroller:vars]
peers=execution_nodes

[automationedagateway]
aap-01.test.com

[automationcontroller_gateway]
aap-01.test.com

[execution_nodes]
aap-01.test.com

[automationhub]
aap-01.test.com

[automationedacontroller]
aap-01.test.com

[all:vars]
admin_password='Password1'

pg_host=aap-01.test.com
pg_port=5432

pg_database='awx'
pg_username='awx'
pg_password='Password1'

# AAP EDA Controller
automationedacontroller_admin_password=Password1
automationedacontroller_pg_host=aap-01.test.com
automationedacontroller_pg_database=awx
automationedacontroller_pg_username=awx
automationedacontroller_pg_password=Password1

# AAP Gateway
automationgateway_admin_password=Password1
automationgateway_pg_host=aap-01.test.com
automationgateway_pg_database=awx
automationgateway_pg_username=awx
automationgateway_pg_password=Password1

# AAP Automation Hub
automationhub_admin_password=Password1
automationhub_pg_host=aap-01.test.com
automationhub_pg_database=awx
automationhub_pg_username=awx

I’m not sure why I’m getting the “Automation Gateway host must exist in inventory” error, as I’ve included it in the [automationedagateway] group. Any help would be appreciated!


Hello @dandy_auto. Welcome to Ansible community!

The inventory file must include entry for Automation Gateway.

The sample is as below. The group names must be as specified by documents.

[automationgateway]
aap-01.test.com

Automation Gateway was introduced in AAP 2.5. It offers Unified UI.

1 Like

Many thanks @akira6592,
it sorted out, it was really necessary [automationgateway]
instead of [automationedagateway].

But now I’m getting another weird error. Now just wondering if it’s really easy to get APP to run on a single node VM?

@dandy_auto

If you want to run single node VM, I recommend the Containerized installtion.

1 Like

AAP 2.5 require at least 2 nodes, because automationcontroller and automationhub cannot be in same node… I tried in 3 nodes, it works fine.

[automationgateway]
node1
[automationcontroller]
node2
[automationhub]
node3