Telnet module for ansible

1,396 views
Skip to first unread message

Madhusudhanan Santhanam

unread,
Feb 15, 2017, 10:15:40 PM2/15/17
to Ansible Project
Is there any telnet module available for Ansible?

I want to telnet to server and execute some command for a particular task. Any body please help?

Nehal J Wani

unread,
Feb 16, 2017, 6:32:14 AM2/16/17
to ansible...@googlegroups.com, infor...@gmail.com

- hosts: localhost

  tasks:
    - expect:
        command: telnet localhost 8000
        responses:
          "Escape character is '\\^]'.": "GET / HTTP/1.1\rHost: localhost\r\n"
          "</html>": "\x1d"
          "telnet>": "quit"
      ignore_errors: yes

On Thu, Feb 16, 2017 at 8:45 AM, Madhusudhanan Santhanam <infor...@gmail.com> wrote:
Is there any telnet module available for Ansible?

I want to telnet to server and execute some command for a particular task. Any body please help?

--
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+unsubscribe@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/5ef499f6-3ed3-4b0f-a6bf-62e615feecd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Nehal J Wani
Reply all
Reply to author
Forward
0 new messages