win_shell hangs

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

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

`

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.

Many apps with msi installers have a quiet mode for unattended installations. Might be worth checking to see if your app has a silent mode. Often there is a /qn option you can pass to the installer program.

Hope this helps,

Jon

The app is embededd inside an osgi container (karaf), there is no installer,the app is started by just executing the karaf start script.

Thx