Hi there,
I’m trying to do something with ansible that sounds easy/common enough. Somewhere in my playbook, after setting up my reverse proxies, static directories, and mysql, I’d like to kick off my node.js app. The typical way I would do this manually is by running:
npm start &
“npm start” runs server.js, which starts my server. The ampersand runs everything in the background.
However, it appears that the “&” doesn’t work for ansible. The playbook pauses at this point and never returns. How do I run a blocking script with ansible?
Thanks,
Jacob