community / community.general / 1.3.11 / module / docker_stack_task_info Return information of the tasks on a docker stack | "added in version" 1.1.0 of community.general" Authors: Jose Angel Munoz (@imjoseangel)community.general.docker_stack_task_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 tasks using the C(docker stack) command on the target node (see examples).
- name: Shows stack info community.general.docker_stack_task_info: name: test_stack register: result
- name: Show results ansible.builtin.debug: var: result.results
name: description: - Stack name. required: true type: str
results: description: 'List of dictionaries containing the list of tasks associated to a stack name. ' elements: dict returned: always sample: '[{"CurrentState":"Running","DesiredState":"Running","Error":"","ID":"7wqv6m02ugkw","Image":"busybox","Name":"test_stack.1","Node":"swarm","Ports":""}] ' type: list