For example, if I want a task to pull ec2_instance_facts until any instance is in running state, and retry if none is running.
you cannot loop over the results of your task that is generating those
results, you CAN loop over the results of one task in a second task.
But I want to retry the first task until expected result. I don’t see a way for Ansible to retry a bock of tasks.
you CAN retry the first task, use until condition, i dont see a block
of tasks ...