Do a register on the ansible task, then use retry, delay, and until. The until should look for something in the register like a return value found_update_count = 0. just typing on my phone so you probably want to ignore errors and debug the register to find a value that suits you.