roles/hap-nodejs/tasks/main.yaml
changeset 15 6913019b9492
parent 9 511e97bd5566
child 16 23b704e271bb
--- a/roles/hap-nodejs/tasks/main.yaml	Tue Feb 20 20:17:53 2018 -0600
+++ b/roles/hap-nodejs/tasks/main.yaml	Thu Feb 22 21:08:27 2018 -0600
@@ -14,7 +14,10 @@
 - name: install homekit apt packages
   become: yes
   apt: name="{{item}}"
-  with_items: "{{hap_ubuntu_apt_packages}}"
+  with_items:
+    - "libavahi-compat-libdnssd-dev"
+    - "nodejs-legacy"
+    - "npm"
 
 - name: download and unarchive HAP-NodeJS
   become: yes
@@ -27,11 +30,13 @@
     owner: "{{hap_user}}"
     group: "{{hap_user}}"
 
+# global?
 - name: install npm packages
   become: yes
   become_user: "{{hap_user}}"
   npm: name="{{item}}" path="{{hap_dest}}"
-  with_items: "{{hap_npm_packages}}"
+  with_items:
+    - "python-shell"
 
 - name: clean up accessory examples
   become: yes