-
- Downloads
New ipamodule_base_vars
There are common parameters in all modules like ipaadmin_principal and ipaadmin_password. As this list of common parameters will be extended soon, there is a need to reduce the code and documentation duplicates. A ModuleDocFragment is added to provide the module documentation for the common parameters. This is used in the modules with extends_documentation_fragment. ansible_freeipa_module has additional ipamodule_base_spec and get_ipamodule_base_vars. ipamodule_base_spec extends argument_spec in the module and get_ipamodule_base_vars is used to return a dict containing the common parameters.
Showing
- .github/workflows/docs.yml 2 additions, 2 deletions.github/workflows/docs.yml
- .github/workflows/lint.yml 1 addition, 0 deletions.github/workflows/lint.yml
- .pre-commit-config.yaml 1 addition, 1 deletion.pre-commit-config.yaml
- plugins/doc_fragments/ipamodule_base_docs.py 33 additions, 0 deletionsplugins/doc_fragments/ipamodule_base_docs.py
- plugins/module_utils/ansible_freeipa_module.py 16 additions, 0 deletionsplugins/module_utils/ansible_freeipa_module.py
- plugins/modules/ipalocation.py 22 additions, 26 deletionsplugins/modules/ipalocation.py
- utils/ansible-doc-test 2 additions, 0 deletionsutils/ansible-doc-test
Loading
Please register or sign in to comment