I am getting this error:

FAILED! => {"changed": true, "msg": "Telnet action failed: telnet 
connection closed", "output": []}



On Monday, April 13, 2020 at 3:07:25 AM UTC-4, Zaldy B wrote:
>
> 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/d249cf6f-c1ad-4e21-915e-d7190264ebbb%40googlegroups.com.

Reply via email to