2018-09-07 15:57:36 +02:00
|
|
|
.. _ansible.module_utils:
|
|
|
|
.. _module_utils:
|
|
|
|
|
|
|
|
***************************************************************
|
|
|
|
Ansible Reference: Module Utilities
|
|
|
|
***************************************************************
|
|
|
|
|
2018-12-10 16:17:15 +01:00
|
|
|
This page documents utilities intended to be helpful when writing
|
|
|
|
Ansible modules in Python.
|
2018-09-07 15:57:36 +02:00
|
|
|
|
|
|
|
|
|
|
|
AnsibleModule
|
|
|
|
--------------
|
|
|
|
|
2018-12-10 16:17:15 +01:00
|
|
|
To use this functionality, include ``from ansible.module_utils.basic import AnsibleModule`` in your module.
|
2018-09-07 15:57:36 +02:00
|
|
|
|
2018-12-10 16:17:15 +01:00
|
|
|
.. autoclass:: ansible.module_utils.basic.AnsibleModule
|
|
|
|
:members:
|
2020-03-25 19:13:56 +01:00
|
|
|
:noindex:
|
2018-09-07 15:57:36 +02:00
|
|
|
|
|
|
|
Basic
|
|
|
|
------
|
|
|
|
|
2018-12-10 16:17:15 +01:00
|
|
|
To use this functionality, include ``import ansible.module_utils.basic`` in your module.
|
2018-09-07 15:57:36 +02:00
|
|
|
|
2018-12-10 16:17:15 +01:00
|
|
|
.. automodule:: ansible.module_utils.basic
|
|
|
|
:members:
|