'run a command on the remote host'

def exec_command(self, cmd, in_data=None, sudoable=True):

    super(Connection, self).exec_command(cmd, in_data=in_data, sudoable=sudoable)
    display.vvv(u'ESTABLISH    SSH    CONNECTION    FOR    USER:    {0}'.format(self._play_context.remote_user), host=self._play_context.remote_addr)
    ssh_executable = self._play_context.ssh_executable
    if ((not in_data) and sudoable):
        args = (ssh_executable, '-tt', self.host, cmd)
    else:
        args = (ssh_executable, self.host, cmd)
    cmd = self._build_command(*args)
    (returncode, stdout, stderr) = self._run(cmd, in_data, sudoable=sudoable)
    return (returncode, stdout, stderr)
