Beispiel #1
0
 def _check_argspec(self):
     """ Load the doc and convert
     Add the root conditionals to what was returned from the conversion
     and instantiate an AnsibleModule to validate
     """
     argspec = convert_doc_to_ansible_module_kwargs(DOCUMENTATION)
     basic._ANSIBLE_ARGS = to_bytes(
         json.dumps({"ANSIBLE_MODULE_ARGS": self._task.args})
     )
     basic.AnsibleModule.fail_json = self._fail_json
     basic.AnsibleModule(**argspec)
Beispiel #2
0
def generate_argspec():
    """ Generate an argspec
    """
    argspec = convert_doc_to_ansible_module_kwargs(DOCUMENTATION)
    argspec = dict_merge(argspec, ARGSPEC_CONDITIONALS)
    return argspec
Beispiel #3
0
def generate_argspec():
    """ Generate an argspec
    """
    argspec = convert_doc_to_ansible_module_kwargs(DOCUMENTATION)
    return argspec