I thought someone had added recovery actions to win_service module, but 
maybe that PR never got finished, or I am confused with dependent services.

I think you would have to use script module and some powershell to set 
recovery actions.  You could maybe use sc.exe too if you are in a hurry, 
although it would repeat the command every time you run the playbook.  
Maybe that doesn't matter though, it depends on what you need to get done.

Hope this helps,

Jon

On Thursday, May 7, 2020 at 8:42:45 PM UTC+1, vinod devops wrote:
>
> Hi Friends,
>
> How do I set windows service recovery on. failure, 
>
> suppose x service stopped due to failure, it needs to started 
> automatically by creating recovery condition with. ansible windows service?
>
>
> How do I do that ? 
>
> Thanks
> vinod
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/27d5d495-bb64-48f8-a125-d0a44588715f%40googlegroups.com.

Reply via email to