Why the host failed to connect when the controller node is same as Execution node on Ansible Automation platform?

Solution Verified - Updated -

Issue

  • Not able to connect to the controller node when executing the playbook from the same controller node.
  • It shows the below error when trying to ping the controller node:

    fatal: [tower1.example.com]: UNREACHABLE! => {"changed": false, "msg": "Failed to connect to the host via ssh: ssh: connect to host tower1.example.com port 22: Connection refused", "unreachable": true}
    

Environment

  • Ansible Automation Platform.

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