Add wait_for on ssh for hosts after rebuilding