it took me 2 days try to figure out how to terminate the loop when the condition is met inside of the include tasks. This apply: when it saved my day. This post helped