src.nth.io/

summaryrefslogtreecommitdiff
path: root/roles/hap-nodejs/tasks
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2018-02-22 22:09:20 -0600
committerLuke Hoersten <[email protected]>2018-02-22 22:09:20 -0600
commit24adf7b9f332fed5cf086f2d26a556240c1c70a3 (patch)
treea8983da4d854fb2d3d1feb2d0de4848ec2c32978 /roles/hap-nodejs/tasks
parentdd15a217d8f3cedded37fe4db8a352013eb41559 (diff)
Minor fixes.
Diffstat (limited to 'roles/hap-nodejs/tasks')
-rw-r--r--roles/hap-nodejs/tasks/main.yaml11
1 files changed, 5 insertions, 6 deletions
diff --git a/roles/hap-nodejs/tasks/main.yaml b/roles/hap-nodejs/tasks/main.yaml
index 824ff10..9af5656 100644
--- a/roles/hap-nodejs/tasks/main.yaml
+++ b/roles/hap-nodejs/tasks/main.yaml
@@ -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