#!/usr/bin/python from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = ''' --- module: randommodule short_description: A random module description: - A random module. author: - Ansible Core Team version_added: 1.0.0 deprecated: alternative: Use some other module why: Test deprecation removed_in: '3.0.0' options: test: description: Some text. type: str version_added: 1.2.0 sub: description: Suboptions. type: dict suboptions: subtest: description: A suboption. type: int version_added: 1.1.0 # The following is the wrong syntax, and should not get processed # by add_collection_to_versions_and_dates() options: subtest2: description: Another suboption. type: float version_added: 1.1.0 # The following is not supported in modules, and should not get processed # by add_collection_to_versions_and_dates() env: - name: TEST_ENV version_added: 1.0.0 deprecated: alternative: none why: Test deprecation removed_in: '2.0.0' version: '2.0.0' extends_documentation_fragment: - testns.testcol2.module ''' EXAMPLES = ''' ''' RETURN = ''' z_last: description: A last result. type: str returned: success version_added: 1.3.0 m_middle: description: - This should be in the middle. - Has some more data type: dict returned: success and 1st of month contains: suboption: description: A suboption. type: str choices: [ARF, BARN, c_without_capital_first_letter] version_added: 1.4.0 a_first: description: A first result. type: str returned: success ''' from ansible.module_utils.basic import AnsibleModule def main(): module = AnsibleModule( argument_spec=dict(), ) module.exit_json() if __name__ == '__main__': main()