Hello,
thank you for the reply,

the issue is within the "someApp", even if I start the app manually a cmd 
windows pops up to start it and when I run the C:\someApp\bin\stop.bat the 
App stops however the opened cmd windows never closes and that leads the 
powershell to keep the session alive on until the closure of the cmd 
windows .

My solution to find the process and kill it after stopping the App.

On Tuesday, February 28, 2017 at 2:39:54 PM UTC+1, J Hawkesworth wrote:
>
> Not a lot of information to go on here, but it looks like you might need 
> to change syntax, looking at the examples here:
> https://docs.ansible.com/ansible/win_shell_module.html
>
> try something like this in your playbook
>
> win_shell: start.bat
> args:
>   chdir: C:\someApp\bin
>
>
>
>
> On Monday, February 20, 2017 at 1:40:09 PM UTC, Hmdi Bz wrote:
>>
>> hello,
>> I tried to execute a bash script ( the script is inside the remote 
>> windows server)
>> the bash script was executed but the win_shell  task hangs.
>> win_shell: chdir="C:\\someApp\\bin" ./start.bat
>>
>

-- 
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/a157a24e-af3c-47ee-8b60-6c5cbdf59b03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to