src.nth.io/

summaryrefslogtreecommitdiff
path: root/roles/hap-nodejs/tasks/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'roles/hap-nodejs/tasks/main.yaml')
-rw-r--r--roles/hap-nodejs/tasks/main.yaml9
1 files changed, 7 insertions, 2 deletions
diff --git a/roles/hap-nodejs/tasks/main.yaml b/roles/hap-nodejs/tasks/main.yaml
index cd3f71c..824ff10 100644
--- a/roles/hap-nodejs/tasks/main.yaml
+++ b/roles/hap-nodejs/tasks/main.yaml
@@ -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