diff options
Diffstat (limited to 'collections')
6 files changed, 40 insertions, 0 deletions
diff --git a/collections/ansible_collections/local/testcollection/README.md b/collections/ansible_collections/local/testcollection/README.md new file mode 100644 index 0000000..6c38018 --- /dev/null +++ b/collections/ansible_collections/local/testcollection/README.md @@ -0,0 +1,3 @@ +# Ansible Collection - local.testcollection + +Documentation for the collection. diff --git a/collections/ansible_collections/local/testcollection/galaxy.yml b/collections/ansible_collections/local/testcollection/galaxy.yml new file mode 100644 index 0000000..ac9bb7e --- /dev/null +++ b/collections/ansible_collections/local/testcollection/galaxy.yml @@ -0,0 +1,7 @@ +--- +namespace: local +name: testcollection +version: 1.0.0 +readme: README.md +authors: + - your name <example@domain.com> diff --git a/collections/ansible_collections/local/testcollection/plugins/module_utils/__init__.py b/collections/ansible_collections/local/testcollection/plugins/module_utils/__init__.py new file mode 100644 index 0000000..9854911 --- /dev/null +++ b/collections/ansible_collections/local/testcollection/plugins/module_utils/__init__.py @@ -0,0 +1,4 @@ +"""module_utils package.""" + +# Some value that can be imported from a module +MY_STRING: str = "foo" diff --git a/collections/ansible_collections/local/testcollection/plugins/module_utils/py.typed b/collections/ansible_collections/local/testcollection/plugins/module_utils/py.typed new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/collections/ansible_collections/local/testcollection/plugins/module_utils/py.typed diff --git a/collections/ansible_collections/local/testcollection/plugins/modules/__init__.py b/collections/ansible_collections/local/testcollection/plugins/modules/__init__.py new file mode 100644 index 0000000..0d3a56a --- /dev/null +++ b/collections/ansible_collections/local/testcollection/plugins/modules/__init__.py @@ -0,0 +1 @@ +"""modules package.""" diff --git a/collections/ansible_collections/local/testcollection/plugins/modules/module_with_relative_import.py b/collections/ansible_collections/local/testcollection/plugins/modules/module_with_relative_import.py new file mode 100644 index 0000000..147a8d3 --- /dev/null +++ b/collections/ansible_collections/local/testcollection/plugins/modules/module_with_relative_import.py @@ -0,0 +1,25 @@ +"""module_with_relative_import module.""" + +from ansible.module_utils.basic import AnsibleModule + +# pylint: disable=E0402 +from ..module_utils import MY_STRING # noqa: TID252 # type: ignore[import-untyped] + +DOCUMENTATION = r""" +options: + name: + required: True +""" + + +def main() -> AnsibleModule: + """The main function.""" + return AnsibleModule( + argument_spec={ + "name": {"required": True, "aliases": [MY_STRING]}, + }, + ) + + +if __name__ == "__main__": + main() |