mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 20:08:41 +00:00
Update docker_stack_info module documentation to clarify functionality (#693)
* Update documentation to reflect module functionality Clarify that this module is used for accessing information on all stacks Add link to docker_stack_task_info module for users looking for detailed info on a single stack Fixes #690 * Remove trailing whitespace, add trailing period. --------- Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
2c633dadeb
commit
78801088ae
@ -13,20 +13,24 @@ DOCUMENTATION = '''
|
|||||||
---
|
---
|
||||||
module: docker_stack_info
|
module: docker_stack_info
|
||||||
author: "Jose Angel Munoz (@imjoseangel)"
|
author: "Jose Angel Munoz (@imjoseangel)"
|
||||||
short_description: Return information on a docker stack
|
short_description: Return information on all docker stacks
|
||||||
description:
|
description:
|
||||||
- Retrieve information on docker stacks using the C(docker stack) command
|
- Retrieve information on docker stacks using the C(docker stack) command
|
||||||
on the target node (see examples).
|
on the target node (see examples).
|
||||||
extends_documentation_fragment:
|
extends_documentation_fragment:
|
||||||
- community.docker.attributes
|
- community.docker.attributes
|
||||||
- community.docker.attributes.info_module
|
- community.docker.attributes.info_module
|
||||||
|
seealso:
|
||||||
|
- module: community.docker.docker_stack_task_info
|
||||||
|
description: >-
|
||||||
|
To retrieve detailed information about the services under a specific
|
||||||
|
stack use the M(community.docker.docker_stack_task_info) module.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
RETURN = '''
|
RETURN = '''
|
||||||
results:
|
results:
|
||||||
description: |
|
description: |
|
||||||
List of dictionaries containing the list of stacks or tasks associated
|
List of dictionaries containing the list of stacks on the target node
|
||||||
to a stack name.
|
|
||||||
sample:
|
sample:
|
||||||
- {"name":"grafana","namespace":"default","orchestrator":"Kubernetes","services":"2"}
|
- {"name":"grafana","namespace":"default","orchestrator":"Kubernetes","services":"2"}
|
||||||
returned: always
|
returned: always
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user