community / community.general / 1.3.11 / module / docker_stack_info Return information on a docker stack | "added in version" 1.0.0 of community.general" Authors: Jose Angel Munoz (@imjoseangel)community.general.docker_stack_info (1.3.11) — module
Install with ansible-galaxy collection install community.general:==1.3.11
collections: - name: community.general version: 1.3.11
Retrieve information on docker stacks using the C(docker stack) command on the target node (see examples).
- name: Shows stack info community.general.docker_stack_info: register: result
- name: Show results ansible.builtin.debug: var: result.results
results: description: 'List of dictionaries containing the list of stacks or tasks associated to a stack name. ' returned: always sample: '"results": [{"name":"grafana","namespace":"default","orchestrator":"Kubernetes","services":"2"}] ' type: list