orchestra android terminals and router using ansible

Hi guys,

So I have thousands of Android terminals (not phones, but terminals running Android) accessible via SSH, which is good since I can use Ansible.

Android linux is not so standard and lacking some linux parts significantly, namely bash and python.

But it’s OK since I can still use raw module.

The problem at my hand is I need to login to thousands of Android terminals, telnet 192.168.0.1 for the attached router, and enter of bunch of dynamically assembled commands.

By dynamic I mean router commands has variables both from my control host environment, and remote Android variables.

So my questions are

  1. Is it convenient to do so in Ansible? (No python, only raw module)
  2. How to make sure the remote telnet is using LINEMODE using ansible?
  3. If possible, how to stream telnet commands without creating a temp file on remote android terminal nodes?

Any ideas are welcome, thanks a million!