roles/hap-nodejs/tasks/main.yaml
changeset 7 55b8db128364
parent 1 bc6a0f25a229
child 8 e7007d23a144
--- a/roles/hap-nodejs/tasks/main.yaml	Mon Jan 29 22:38:53 2018 -0600
+++ b/roles/hap-nodejs/tasks/main.yaml	Mon Jan 29 22:45:54 2018 -0600
@@ -30,10 +30,7 @@
   notify: restart hap-nodejs service
 
 - name: build HAP-NodeJS
-  command: "npm install"
-  args:
-    chdir: "{{hap_dest}}"
-  changed_when: false
+  npm: path="{{hap_dest}}"
 
 - name: configure systemd service
   become: yes