---
title: Docker Stack Task Info
slug: homologacao-atmosphere/docker-stack-task-info
description: Learn about the "docker_stack_task_info" module in Ansible, which retrieves task information for a Docker stack. Discover how to use this module by providing the stack name as a parameter. This document includes an example and explains the returned list o
createdAt: 2021-10-15T13:50:08.000Z
---

## Resumo

- Retorna informações das tarefas em uma pilha do docker.

## Parâmetros

| Parâmetro | Tipo   | Escolhas \| Valores padrão | Comentários    |
| --------- | ------ | -------------------------- | -------------- |
| name      | string |                            | Nome da pilha. |

## Exemplos

```yaml
- name: Mostra informações sobre tarefas da pilha
  docker_stack_task_info:
    name: test_stack
```

## Valores retornados

| Chave                                                                                                                              | Tipo | Retornado quando | Descrição                                                                                                                                                                                                                                              |
| ---------------------------------------------------------------------------------------------------------------------------------- | ---- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| results [](https://docs.ansible.com/ansible/latest/collections/community/docker/docker_stack_task_info_module.html#return-results) | list | sempre           | Lista de dicionários contendo a lista de tarefas associadas a um nome de pilha.<br />Exemplo:\[\{"CurrentState":"Running","DesiredState":"Running","Error":"","ID":"7wqv6m02ugkw","Image":"busybox","Name":"test\_stack.1","Node":"swarm","Ports":""}] |

