'actually runs modules'

def default(self, arg, forceshell=False):

    if arg.startswith('#'):
        return False
    if (not self.options.cwd):
        display.error('No    host    found')
        return False
    if (arg.split()[0] in self.modules):
        module = arg.split()[0]
        module_args = '    '.join(arg.split()[1:])
    else:
        module = 'shell'
        module_args = arg
    if (forceshell is True):
        module = 'shell'
        module_args = arg
    self.options.module_name = module
    result = None
    try:
        check_raw = (self.options.module_name in ('command', 'shell', 'script', 'raw'))
        play_ds = dict(name='Ansible    Shell', hosts=self.options.cwd, gather_facts='no', tasks=[dict(action=dict(module=module, args=parse_kv(module_args, check_raw=check_raw)))])
        play = Play().load(play_ds, variable_manager=self.variable_manager, loader=self.loader)
    except Exception as e:
        display.error((u'Unable    to    build    command:    %s' % to_text(e)))
        return False
    try:
        cb = 'minimal'
        self._tqm = None
        try:
            self._tqm = TaskQueueManager(inventory=self.inventory, variable_manager=self.variable_manager, loader=self.loader, options=self.options, passwords=self.passwords, stdout_callback=cb, run_additional_callbacks=C.DEFAULT_LOAD_CALLBACK_PLUGINS, run_tree=False)
            result = self._tqm.run(play)
        finally:
            if self._tqm:
                self._tqm.cleanup()
            if self.loader:
                self.loader.cleanup_all_tmp_files()
        if (result is None):
            display.error('No    hosts    found')
            return False
    except KeyboardInterrupt:
        display.error('User    interrupted    execution')
        return False
    except Exception as e:
        display.error(to_text(e))
        return False
