I am unable to connect via telnet (SSH is not an option) using ansible
Steps to mimic
- name: Fetch Show Version
ansible.netcommon.telnet:
user: '{{ username }}'
password: '{{ password }}'
login_prompt: 'username: '
prompts:
- '[>#!-]'
command:
- terminal length 0
- show version
register: sVersion
- debug: var=sVersion
Getting this particular error - Telnet action failed: telnet connection closed Though I am able to connect to the same device outside of ansible using putty via telnet.