Skip to content

EAPI connection method error

When using connection method EAPI, encountering error

"Could not connect to http://inventory_hostname:80/command-api: [Errno -2] Name or service not known"}

Ansible Version

ansible [core 2.13.4]
  config file = /workspaces/graphql4netdevops/playbooks/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /opt/ansible/lib/python3.8/site-packages/ansible
  ansible collection location = /root/.ansible/collections:/usr/share/ansible/collections
  executable location = /opt/ansible/bin/ansible
  python version = 3.8.10 (default, Jun 23 2021, 11:28:12) [GCC 8.3.0]
  jinja version = 3.1.2
  libyaml = True

Using connection network CLI does not encounter the same error.

Edited by Joel W. King