First make sure ansible can actually sign in to the target hosts before trying to use roles. I’m guessing here but that role name indicates something related which might impact the connection.
[root@ansible01 test]# ping leaf-1 PING leaf-1.lab.com (192.168.7.1) 56(84) bytes of data. 64 bytes from testing_1F.lab.com (192.168.7.1): icmp_seq=1 ttl=253 time=0.701 ms 64 bytes from testing_1F.lab.com (192.168.7.1): icmp_seq=2 ttl=253 time=0.623 ms 64 bytes from testing_1F.lab.com (192.168.7.1): icmp_seq=3 ttl=253 time=0.736 ms
[root@ansible01 test]# ansible leaf-1 -m ping /usr/lib/python2.7/site-packages/requests/__init__.py:80: RequestsDependencyWarning: urllib3 (1.22) or chardet (2.2.1) doesn't match a supported version! RequestsDependencyWarning) leaf-1 | UNREACHABLE! => { "changed": false, "msg": "Failed to connect to the host via ssh:
on more thing : i have logged in to ansible server as “root” but my username to log in to network device is “admin” … do i have to define that somewhere ?
on more thing : i have logged in to ansible server as "root" but my username to log in to network device is "admin" ...
do i have to define that somewhere ?