ansible 有支持 npm start 的模块吗?
Does ansible have a module that supports npm start?
ansible有支持npm start的模块吗?
我看过 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?
感谢
Ansible 模块仓库中没有这样的东西。
如果我是你,我会安装主管(这个任务有 package manager modules and supervisorctl 模块)并将其设置为 运行 你的服务。
这取决于你想做什么? 运行 你的 npm 应用程序是连续的吗?然后写一个服务文件,用service模块把它当作一个服务。
如果你想 运行 只作为一个命令,使用 command 模块。
ansible有支持npm start的模块吗?
我看过 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?
感谢
Ansible 模块仓库中没有这样的东西。
如果我是你,我会安装主管(这个任务有 package manager modules and supervisorctl 模块)并将其设置为 运行 你的服务。
这取决于你想做什么? 运行 你的 npm 应用程序是连续的吗?然后写一个服务文件,用service模块把它当作一个服务。 如果你想 运行 只作为一个命令,使用 command 模块。