django_command/django_check/django_createcachetable: add return value version (#9063)

* add return value version

* add changelog frag

* reformat yaml
This commit is contained in:
Alexei Znamensky 2024-10-27 21:36:38 +13:00 committed by GitHub
parent 39f3b151e8
commit 107df41d9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 104 additions and 35 deletions

View file

@ -8,17 +8,18 @@ from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = """
---
module: django_createcachetable
author:
- Alexei Znamensky (@russoz)
- Alexei Znamensky (@russoz)
short_description: Wrapper for C(django-admin createcachetable)
version_added: 9.1.0
description:
- This module is a wrapper for the execution of C(django-admin createcachetable).
- This module is a wrapper for the execution of C(django-admin createcachetable).
extends_documentation_fragment:
- community.general.attributes
- community.general.django
- community.general.django.database
- community.general.attributes
- community.general.django
- community.general.django.database
attributes:
check_mode:
support: full
@ -27,6 +28,7 @@ attributes:
"""
EXAMPLES = """
---
- name: Create cache table in the default database
community.general.django_createcachetable:
settings: myproject.settings
@ -40,10 +42,17 @@ EXAMPLES = """
"""
RETURN = """
---
run_info:
description: Command-line execution information.
type: dict
returned: success and O(verbosity) >= 3
version:
description: Version of Django.
type: str
returned: always
sample: 5.1.2
version_added: 10.0.0
"""
from ansible_collections.community.general.plugins.module_utils.django import DjangoModuleHelper