I suspect mysql isn't booted and the VM is setup with one processor, so a priority inversion is happening not permitting mysql to schedule enough to get to an operational state before ansible tries to create the haproxy database user.
Recommend try adding a wait for for port 3306 at the end of mysql (the next step after mysql orchestration is the creation of this database user).
I suspect mysql isn't booted and the VM is setup with one processor, so a priority inversion is happening not permitting mysql to schedule enough to get to an operational state before ansible tries to create the haproxy database user.
Recommend try adding a wait for for port 3306 at the end of mysql (the next step after mysql orchestration is the creation of this database user).
http:// docs.ansible. com/ansible/ wait_for_ module. html