Ansible service module

33 views
Skip to first unread message

Harish Singh

unread,
Nov 13, 2017, 2:27:39 AM11/13/17
to Ansible Project
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

Dick Davies

unread,
Nov 13, 2017, 7:58:43 AM11/13/17
to ansible list
Look at the wait_for module, it should be able to help you if you need
to, uh, wait for a specific state.
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4fb1c6f9-d7ed-4784-99b7-8cca80ba66e9%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Harish Chander Dalal

unread,
Nov 14, 2017, 12:21:25 PM11/14/17
to ansible...@googlegroups.com
As of now using only that, thanks for approval

On Mon, Nov 13, 2017 at 6:28 PM, Dick Davies <di...@hellooperator.net> wrote:
Look at the wait_for module, it should be able to help you if you need
to, uh, wait for a specific state.

On 13 November 2017 at 07:27, Harish Singh <08hari...@gmail.com> wrote:
> 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
>
> --
> You received this message because you are subscribed to the Google Groups "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ansible-project+unsubscribe@googlegroups.com.
> To post to this group, send email to ansible-project@googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/dOs--BGoppE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAK5eLPTSeextaMtD5A7hdS5zdYCoemBFDR8kx2Qzq0UxEQrgKA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.



--
Thanks
Harish Chander Dalal
+91-8529142143

Reply all
Reply to author
Forward
0 new messages