# Ansible - Authentication timeout error

**URL:** <https://forum.ansible.com/t/ansible-authentication-timeout-error/35510>\
**Category:** Ansible Developer\
**Created:** [July 15, 2021, 10:59pm UTC](https://forum.ansible.com/t/ansible-authentication-timeout-error/35510 "2021-07-15T22:59:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![benilde\_tadonkeng](https://avatars.discourse-cdn.com/v4/letter/b/87869e/32.png) [@benilde\_tadonkeng](https://forum.ansible.com/u/benilde_tadonkeng)\
**Post date:** [July 15, 2021, 10:59pm UTC](https://forum.ansible.com/t/ansible-authentication-timeout-error/35510/1 "2021-07-15T22:59:49Z")

</div>

Hi every one,

I’m trying to pull out some information from a cisco switch device using ios\_facts module, for exemple ios version using ansible.  
By running the playbook, the following message appears:

PLAY [Host(s) name] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK [Display ios facts] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
fatal: [10.27.160.1]: FAILED! =\> {“ansible\_facts”: {“discovered\_interpreter\_python”: “/usr/libexec/platform-python”}, “changed”: false, “msg”: “Failed to authenticate: Authentication timeout.”}

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
10.27.160.1 : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0

The inventory hosts file looks like :

[swradius]  
10.27.160.1

[swradius:vars]  
ansible\_connection = network\_cli  
ansible\_network\_os = ios  
ansible\_user = telecom  
ansible\_password = jtaciusss!adm

and here below is the playbook itself:

* * *

- name: Host(s) name  
hosts: swradius  
gather\_facts: false

tasks:

- name: Display ios facts  
ios\_facts:  
gather\_subset: all

- name: Display the current ios version  
debug:  
msg: “The current ios version is {{ansible\_net\_version}}”
