Hi, First of all thanks for the answers, below is my playbook and then the error message.
## Playbook - name: Coletct Information Switches connection: network_cli gather_facts: false hosts: lab_telnet tasks: - name: send configuration commands to IOS telnet: user: admin password: xxxx login_prompt: "Username: " prompts: - "[>|#]" command: - terminal length 0 - show run # Error message root@DESKTOP-5B1T804:/etc/ansible# ansible-playbook telnet.yml ERROR! 'telnet' is not a valid attribute for a Play The error appears to have been in '/etc/ansible/telnet.yml': line 8, column 3, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: - name: send configuration commands to IOS ^ here Em terça-feira, 8 de janeiro de 2019 16:54:58 UTC-2, Eduardo Nunes Pereira escreveu: > > Hello Everyone, > > > I use ansible 2.7, I'm trying to use the 'telnet' module to connect to > Cisco devices with IOS but it has the following error: '*ERROR!' Telnet > 'is not a valid attribute to play "*any ideas? > > -- 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 post to this group, send email to ansible-project@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/e29e5dc4-718c-42fe-bf0f-37b598ddee1c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.