summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/cloud/docker/docker_compose.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/modules/cloud/docker/docker_compose.py')
-rw-r--r--lib/ansible/modules/cloud/docker/docker_compose.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/ansible/modules/cloud/docker/docker_compose.py b/lib/ansible/modules/cloud/docker/docker_compose.py
index 5e284cea87..6ea6e1e991 100644
--- a/lib/ansible/modules/cloud/docker/docker_compose.py
+++ b/lib/ansible/modules/cloud/docker/docker_compose.py
@@ -328,6 +328,7 @@ services:
description: One or more commands to be executed in the container.
returned: success
type: list
+ elements: str
example: ["postgres"]
image:
description: Name of the image from which the container was built.
@@ -337,12 +338,13 @@ services:
labels:
description: Meta data assigned to the container.
returned: success
- type: complex
+ type: dict
example: {...}
networks:
description: Contains a dictionary for each network to which the container is a member.
returned: success
- type: complex
+ type: list
+ elements: dict
contains:
IPAddress:
description: The IP address assigned to the container.
@@ -358,6 +360,7 @@ services:
description: Aliases assigned to the container by the network.
returned: success
type: list
+ elements: str
example: ['db']
globalIPv6:
description: IPv6 address assigned to the container.
@@ -373,6 +376,7 @@ services:
description: List of container names to which this container is linked.
returned: success
type: list
+ elements: str
example: null
macAddress:
description: Mac Address assigned to the virtual NIC.
@@ -382,7 +386,7 @@ services:
state:
description: Information regarding the current disposition of the container.
returned: success
- type: complex
+ type: dict
contains:
running:
description: Whether or not the container is up with a running process.
@@ -436,6 +440,7 @@ actions:
description: A descriptive name of the action to be performed on the service's containers.
returned: always
type: list
+ elements: str
contains:
id:
description: the container's long ID