Hi Experts,

I am just new with this one. I am trying to connect using telnet (ssh has 
no issue) to my IOS devices, but I am getting error when I run my playbook:
------------------------------

   - 
   
   name: Telnet do show version for IOS
   hosts: telnet_device
   gather_facts: false
   connection: local
   
   tasks:
   - name: show version
      telnet:
      user: cisco
      password: cisco
      login_prompt: "Username: "
      prompts:
      - "[>#]"
      command:
      - terminal length 0
      - show version
   
Error:
PLAY [Telnet do show version for IOS] 
***********************************************************************************************************************

TASK [show version] 
*****************************************************************************************************************************************
fatal: [telnet_device]: FAILED! => {"changed": true, "msg": "Telnet action 
failed: telnet connection closed", "output": []}

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



Any suggestions/comments is much appreciated.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/60dd5a69-5a23-4c53-9bcf-08e5e8df6b44%40googlegroups.com.

Reply via email to