I think that is just the way windows remoting works - when you log out it 
kills any processes you have created (similar to when you log out of a 
remote desktop window, rather than just disconnect).

It is definitely possible to get your java jar program to run if you set it 
up to run as a windows service.

There is probably more than one way to do this but one way is to install 
nssm - downloadable from here: https://nssm.cc/download and then use 
win_nssm module to set up your java program to run as a service.  Depending 
on what your java jar does it may need to run as a specific user.

I hope this helps.

Jon

On Monday, August 1, 2016 at 2:02:46 PM UTC+1, [email protected] wrote:
>
> ansible 2.2.0
> I use raw module to run a bat,and the bat exec a jar,the jar will always 
> run because it's a monitoring program。But when ansible exec the taks 
> over,the jar will also over,why?
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/88451597-4092-464e-acab-e27c7512d793%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to