Minor fixes.
authorLuke Hoersten <luke@hoersten.org>
Thu, 22 Feb 2018 22:09:20 -0600
changeset 16 23b704e271bb
parent 15 6913019b9492
child 17 69a7d69de562
Minor fixes.
roles/hap-nodejs/tasks/main.yaml
--- a/roles/hap-nodejs/tasks/main.yaml	Thu Feb 22 21:08:27 2018 -0600
+++ b/roles/hap-nodejs/tasks/main.yaml	Thu Feb 22 22:09:20 2018 -0600
@@ -18,6 +18,7 @@
     - "libavahi-compat-libdnssd-dev"
     - "nodejs-legacy"
     - "npm"
+  notify: restart hap-nodejs service
 
 - name: download and unarchive HAP-NodeJS
   become: yes
@@ -29,14 +30,12 @@
     creates: "{{hap_dest}}"
     owner: "{{hap_user}}"
     group: "{{hap_user}}"
+  notify: restart hap-nodejs service
 
-# global?
-- name: install npm packages
+- name: install python-shell npm packages
   become: yes
-  become_user: "{{hap_user}}"
-  npm: name="{{item}}" path="{{hap_dest}}"
-  with_items:
-    - "python-shell"
+  npm: name="python-shell" global="yes"
+  notify: restart hap-nodejs service
 
 - name: clean up accessory examples
   become: yes