src.nth.io/

summaryrefslogtreecommitdiff
path: root/roles/hap-nodejs/tasks
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2018-02-22 21:08:27 -0600
committerLuke Hoersten <[email protected]>2018-02-22 21:08:27 -0600
commitdd15a217d8f3cedded37fe4db8a352013eb41559 (patch)
treeb0d7dea2266d6348e526c51f68268ca7e552133c /roles/hap-nodejs/tasks
parenta5e7b1cf5f17c3127995a8a10d20f60add2a53aa (diff)
Removed nodejs role. Using apt now.
Diffstat (limited to 'roles/hap-nodejs/tasks')
-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