Thanks for your answer.I am not sure whether my program is well.But I 
think ansible should close the task if the task exec too long.

在 2016年7月28日星期四 UTC+8上午7:34:49,J Hawkesworth写道:
>
> If it is always running then may be you need to set up whatever the 
> run.bat does as a windows service.  
> You can install nssm.exe and use win_nssm module to install programs as 
> services, and then use the win_service module to start and stop them.
>
> You can use fetch module against windows machines if you just want to 
> fetch log files when you run your playbook too.
>
> There are lots of programs around that can collect log files and forward 
> them to another machine for processing. Two that I have heard of, but not 
> used are NXLOG and Elastic Filebeat.
>
> Hope this helps,
>
> Jon
>
>
>
> On Wednesday, July 27, 2016 at 5:28:56 PM UTC+1, fcx...@gmail.com wrote:
>>
>> I just want to run my bat by raw module,like 
>> - name: exec run.bat
>>  raw: C:\run.bat
>>
>> The bat is about a program that get logs,so it will be always 
>> running,like Daemon. When I exec ansible-playbook,the task can't go on.How 
>> can I do?
>>
>

-- 
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 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/45139a14-67ba-4636-bed6-3ba4ecee18c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to