Reputation: 57096
Does ansible have a module that supports npm start?
I've looked at the npm module but its main purpose seems to be the installation of npm packages. Fair enough. But how do I npm start? Do I need to fallback to using the command module?
thx
Upvotes: 1
Views: 1144
Reputation: 1542
It depends on what you want to do? Run your npm app in a continuous way? Then write a service file and treat is as a service with the service module. If you want to run ist just as a single command, use the command module.
Upvotes: 2
Reputation: 68289
There are no such thing in Ansible modules repo.
If I were you, I'd install supervisor (there are package manager modules and supervisorctl module for this task) and setup it to run your service.
Upvotes: 1