Ansible on CENTOS VM SSH failing

Hi gents,

After installing ansible and check that my version is 2.4.2.0 I have created a inventory file like this:

Afterward, I have tried to access one of them throught ssh but I can’t.

The fail message is the next:

The username of the network devices is “ccie”.

Do you know i fI need to change something in inventory file or ansible.cfg file?
Thanks in advance!

Have you set up your ssh keys between the two hosts, i.e., the user running Ansible and the target host? What happens if you just try to ssh to the target host?