Based on the output it appears that Ansible is able to reach the device just 
not able to authenticate.

I say that because you get the line:
>     "msg": "Authentication failure.",


Where as if Ansible was unable to reach the device at all I would expect 
something like this:
    "msg": "Failed to connect to the host via ssh: ssh: connect to host 
10.0.1.45 port 22: Operation timed out",

Do you have all of your connection variables for the networking device properly 
set?
For details, see 
https://docs.ansible.com/ansible/latest/network/user_guide/network_best_practices_2.5.html#common-inventory-variables
 
<https://docs.ansible.com/ansible/latest/network/user_guide/network_best_practices_2.5.html#common-inventory-variables>

If you need further help please send more info about how your inventory is 
setup and the commands you are using.

-John



> On Dec 21, 2019, at 3:25 PM, Pranav Aggarwal <pranav.ag...@gmail.com> wrote:
> 
> You can try to debug the output
> 
> On Sun, 22 Dec. 2019, 1:52 am Nirmal Gauda, <nga...@gmail.com 
> <mailto:nga...@gmail.com>> wrote:
> I am Newbie to Ansible , writing my first playbook.
> 
> I can not SSH / PING to network Devices.
> 
> leaf-1 | UNREACHABLE! => {
>     "changed": false,
>     "msg": "Authentication failure.",
>     "unreachable": true
> }
> leaf-2 | UNREACHABLE! => {
>     "changed": false,
>     "msg": "Authentication failure.",
>     "unreachable": true
> }
> 
> 
> i can PING / SSH to network devices from Ansible server but when i run th 
> playbook , it fails.
> 
> No idea if i have to add something in playbook or ansible.cfg . Any 
> Suggestion please ?
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ansible-devel+unsubscr...@googlegroups.com 
> <mailto:ansible-devel+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-devel/9dfc95a3-5da4-4da8-aa29-5f039952cd26%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/ansible-devel/9dfc95a3-5da4-4da8-aa29-5f039952cd26%40googlegroups.com?utm_medium=email&utm_source=footer>.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to ansible-devel+unsubscr...@googlegroups.com 
> <mailto:ansible-devel+unsubscr...@googlegroups.com>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/ansible-devel/CACiJEcEJKs7wrvOyHtRcr-Z-zeO8eFpQmhWzAjWYYZvR7OmuLw%40mail.gmail.com
>  
> <https://groups.google.com/d/msgid/ansible-devel/CACiJEcEJKs7wrvOyHtRcr-Z-zeO8eFpQmhWzAjWYYZvR7OmuLw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/6619527D-9D43-4328-A9B9-D6A1225275BF%40redhat.com.

Reply via email to