have a playbook that gets all container's ARNS in my aws ecs cluster
- name: List jenkins cluster container instances
command: "aws ecs list-container-instances --cluster jenkins"
register: jenkins_containers
- debug: var=jenkins_containers.stdout
output:
ok: [localhost] => {
"jenkins_containers.stdout": {
"containerInstanceArns": [
"arn:aws:ecs:us-east-1:arn0",
"arn:aws:ecs:us-east-1:arn1",
"arn:aws:ecs:us-east-1:arn2"
]
}
}
How can I iterate over the containerInstanceArns field?