set `serial: 1` at the play level it will force the tasks to all run
for one host at a time, combine that with wait_for to test that the
mysql db is back up.
Thanks for the tip. Overall serial looks good but it is usable only at the ‘play’ level. In my case I have one play which uploads a template for config file and does many other actions to configure the mysql cluster. I cannot afford setting serial=1 for the whole play and as I see in http://stackoverflow.com/questions/26685544/rolling-restart-with-ansible-handlers it is not possible to use serial for specific tasks and/or handlers only.