'run a command on the remote minion'

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

    super(Connection, self).exec_command(cmd, in_data=in_data, sudoable=sudoable)
    if in_data:
        raise errors.AnsibleError('Internal    Error:    this    module    does    not    support    optimized    module    pipelining')
    self._display.vvv(('EXEC    %s' % cmd), host=self.host)
    res = self.client.cmd(self.host, 'cmd.exec_code_all', ['bash', ('true;' + cmd)])
    if (self.host not in res):
        raise errors.AnsibleError(("Minion    %s    didn't    answer,    check    if    salt-minion    is    running    and    the    name    is    correct" % self.host))
    p = res[self.host]
    return (p['retcode'], p['stdout'], p['stderr'])
