Ansible service module

Hey !!

If I am working with ansible service module, if in case my tomcat take time more then min. Or 2 min. How can I verify if my service stop only then next step will run. ??

Or service module can take care this will hold till services not stopped. ??

Live env took time so not able to test please verify

Thanks

Look at the wait_for module, it should be able to help you if you need
to, uh, wait for a specific state.

As of now using only that, thanks for approval