On 08. juli 2017 13:17, Phil F wrote:
Hi,

I have just installed Ansible for the first time and am attempting to
connect to a Cisco switch, this needs to be with username and password.

 From both an Ubuntu server and my Mac I can ssh to the box with the same
username and password I have configured in the ansible inventory.

I have attempted from an Ubuntu host and my Mac, however I am receiving the
following error:

===============================================================

xxxx:/etc/ansible$ ansible -m ping all

xxxx | UNREACHABLE! => {

"changed": false,

"msg": "Failed to connect to the host via ssh: Connection to 192.168.10.200
closed by remote host.\r\nConnection closed\r\n",

"unreachable": true

}

This is one of the more asked and answered question so I just gona give you a link.

https://groups.google.com/d/msg/ansible-project/KR1DDD4Avr8/o4lw-YpuAgAJ


--
Kai Stian Olstad

--
You received this message because you are subscribed to the Google Groups "Ansible 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/ff47b078-c3cb-6647-4577-2a3b5353b559%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to