src.nth.io/

summaryrefslogtreecommitdiff
path: root/roles/hap-nodejs/tasks
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2018-03-01 17:04:29 -0600
committerLuke Hoersten <[email protected]>2018-03-01 17:04:29 -0600
commitd80ca142279de1c556e582c46c43b8bd20f25b49 (patch)
treeecdfaf585c8aa154635fafa0f0b4eb7210537cc9 /roles/hap-nodejs/tasks
parent24adf7b9f332fed5cf086f2d26a556240c1c70a3 (diff)
Move python3 to hap-nodejs role.
Diffstat (limited to 'roles/hap-nodejs/tasks')
-rw-r--r--roles/hap-nodejs/tasks/main.yaml21
1 files changed, 4 insertions, 17 deletions
diff --git a/roles/hap-nodejs/tasks/main.yaml b/roles/hap-nodejs/tasks/main.yaml
index 9af5656..50ee6ed 100644
--- a/roles/hap-nodejs/tasks/main.yaml
+++ b/roles/hap-nodejs/tasks/main.yaml
@@ -14,10 +14,7 @@
- name: install homekit apt packages
become: yes
apt: name="{{item}}"
- with_items:
- - "libavahi-compat-libdnssd-dev"
- - "nodejs-legacy"
- - "npm"
+ with_items: "{{hap_apt_packages}}"
notify: restart hap-nodejs service
- name: download and unarchive HAP-NodeJS
@@ -37,19 +34,10 @@
npm: name="python-shell" global="yes"
notify: restart hap-nodejs service
-- name: clean up accessory examples
+- name: remove example accessories
become: yes
- file: path="{{hap_dest}}/accessories" state="absent"
- changed_when: false
-
-- name: create accessories dir
- become: yes
- file:
- path: "{{hap_dest}}/accessories"
- state: "directory"
- owner: "{{hap_user}}"
- group: "{{hap_user}}"
- changed_when: false
+ file: path="{{hap_dest}}/accessories/{{item}}" state="absent"
+ with_items: "{{hap_example_accessories}}"
- name: install door accessory
become: yes
@@ -59,7 +47,6 @@
owner: "{{hap_user}}"
group: "{{hap_user}}"
notify: restart hap-nodejs service
- changed_when: false
- name: create python dir
become: yes