Telnet

Can any one say how to do telnet using ansible

You cannot at this time. If someone REALLY wanted to, you could write your own connection plugin for this, however I seriously recommend against doing so.

If you just want to use telnet to check a service you could do something
like this:

# req. ansible 2.0, python >=2.6, pexpect >= 3.3