parameters: (self, command, module_name="command", timeout=10, forks=10, pattern='')
docstring: run command from andible ad-hoc.
          command  : 必须是一个需要执行的命令字符串， 比如 
                   'uname -a'
docstring_summary: run command from andible ad-hoc.
          command  : 必须是一个需要执行的命令字符串， 比如 
                   'uname -a'
docstring_tokens: run command from andible ad - hoc . command : 必须是一个需要执行的命令字符串， 比如 uname - a
function: def run(self, command, module_name="command", timeout=10, forks=10, pattern=''):
          """
          run command from andible ad-hoc.
          command  : 必须是一个需要执行的命令字符串， 比如 
                   'uname -a'
          """
          data = {}
  
          if module_name not in ["raw", "command", "shell"]:
              raise CommandValueError("module_name",
                                      "module_name must be of the 'raw, command, shell'")
          hoc = Runner(module_name=module_name,
                       module_args=command,
                       timeout=timeout,
                       inventory=self.inventory,
                       pattern=pattern,
                       forks=forks,
                       )
          self.results_raw = hoc.run()
function_tokens: def run ( self , command , module_name = "command" , timeout = 10 , forks = 10 , pattern = '' ) : data = { } if module_name not in [ "raw" , "command" , "shell" ] : raise CommandValueError ( "module_name" , "module_name must be of the 'raw, command, shell'" ) hoc = Runner ( module_name = module_name , module_args = command , timeout = timeout , inventory = self . inventory , pattern = pattern , forks = forks , ) self . results_raw = hoc . run ( )