According to container_definitions output variable documentation:
A list of container definitions in JSON format that describe the different containers that make up your task
But if one sets the register_task_definition input variable to "false" (in order to use this module only as a container definitions JSON generator), the container_definitions output is not a list, but a JSON object, representing a single container definition. I think it's a bug to change the output variables type based on a seemingly unrelated input variable.
The place where this happens in the code is here.
According to
container_definitionsoutput variable documentation:But if one sets the
register_task_definitioninput variable to "false" (in order to use this module only as a container definitions JSON generator), thecontainer_definitionsoutput is not a list, but a JSON object, representing a single container definition. I think it's a bug to change the output variables type based on a seemingly unrelated input variable.The place where this happens in the code is here.