I am getting this when I do -vvv
ansible-playbook 2.8.5 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/site-packages/ansible executable location = /usr/bin/ansible-playbook python version = 2.7.5 (default, Aug 7 2019, 00:51:29) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] Using /etc/ansible/ansible.cfg as config file host_list declined parsing /etc/ansible/TEMPLATES/Cisco_IOS as it did not pass it's verify_file() method Skipping due to inventory source not existing or not being readable by the current user script declined parsing /etc/ansible/TEMPLATES/Cisco_IOS as it did not pass it's verify_file() method auto declined parsing /etc/ansible/TEMPLATES/Cisco_IOS as it did not pass it's verify_file() method Skipping due to inventory source not existing or not being readable by the current user yaml declined parsing /etc/ansible/TEMPLATES/Cisco_IOS as it did not pass it's verify_file() method Skipping due to inventory source not existing or not being readable by the current user ini declined parsing /etc/ansible/TEMPLATES/Cisco_IOS as it did not pass it's verify_file() method Skipping due to inventory source not existing or not being readable by the current user toml declined parsing /etc/ansible/TEMPLATES/Cisco_IOS as it did not pass it's verify_file() method [WARNING]: Unable to parse /etc/ansible/TEMPLATES/Cisco_IOS as an inventory source [WARNING]: No inventory was parsed, only implicit localhost is available [WARNING]: provided hosts list is empty, only localhost is available. Note that the implicit localhost does not match 'all' 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/696fa729-3a94-4ac7-9086-1349a9316d8d%40googlegroups.com.