Background process exits when pipeling is set to false

Apologies if this not the right forum,

I have had pipelining enabled in ansible config. I had to disable it for a certain case. I disabled it in the ansible config (I should have done it more localized), Once pipe lining was disabled, some of the proven working scripts started failing.These are simple scripts which invokes a third party startup scripts, the thirdparty startup scripts starts few processes as background processes. It is simple shell module call similar to shell: path_to_script start_all.

what appears to happen is , 2 processes being started as background proceeds die as soon as the ansible ssh exits when pipelining is disabled. But when pipilining is enabled, they continue to run in the background even after ansible finishes.

This is not an issue as such as I have a fix now. But would like to know why the behavior would defer. I do not have access to thirdparty script.

ansible version is 2.4.2

thanks a lot for any pointers.

pipelining kept the ssh connection open, normally tasks will
open/execute/close the connection, which includes tty. Most 'services'
should detach correctly, but many don't, this seems to be your case.

#1 i would make these into actual services and use your service
manager to handle them

#2 if you really cannot, look into using nohup/dtach and &
backgrounding in shell

thanks Brian