diff --git a/nodejs/provisioning/playbook.yml b/nodejs/provisioning/playbook.yml index deb82db7..5030e081 100644 --- a/nodejs/provisioning/playbook.yml +++ b/nodejs/provisioning/playbook.yml @@ -38,10 +38,10 @@ npm: "path={{ node_apps_location }}/app" - name: Check list of running Node.js apps. - command: /usr/local/bin/forever list + command: npx forever list register: forever_list changed_when: false - name: Start example Node.js app. - command: "/usr/local/bin/forever start {{ node_apps_location }}/app/app.js" + command: "npx forever start {{ node_apps_location }}/app/app.js" when: "forever_list.stdout.find(node_apps_location + '/app/app.js') == -1"