Removed unneeded npm command module.
authorLuke Hoersten <luke@hoersten.org>
Mon, 29 Jan 2018 22:45:54 -0600
changeset 7 55b8db128364
parent 6 0dab8e98044a
child 8 e7007d23a144
Removed unneeded npm command module.
roles/hap-nodejs/tasks/main.yaml
--- 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