author | Luke Hoersten <luke@hoersten.org> |
Thu, 01 Mar 2018 17:14:13 -0600 | |
changeset 18 | 3044f32e7f74 |
permissions | -rw-r--r-- |
18
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
1 |
--- |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
2 |
|
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
3 |
- name: install python3 apt packages |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
4 |
become: yes |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
5 |
apt: name="python3" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
6 |
notify: restart hap-nodejs service |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
7 |
|
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
8 |
- name: install python-shell npm packages |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
9 |
become: yes |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
10 |
npm: name="python-shell" global="yes" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
11 |
notify: restart hap-nodejs service |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
12 |
|
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
13 |
- name: install door accessory |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
14 |
become: yes |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
15 |
copy: |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
16 |
src: "../../../src/Door_accessory.js" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
17 |
dest: "{{hap_dest}}/accessories/Door_accessory.js" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
18 |
owner: "{{hap_user}}" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
19 |
group: "{{hap_user}}" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
20 |
notify: restart hap-nodejs service |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
21 |
|
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
22 |
- name: create python dir |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
23 |
become: yes |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
24 |
file: |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
25 |
path: "{{hap_dest}}/python" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
26 |
state: "directory" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
27 |
owner: "{{hap_user}}" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
28 |
group: "{{hap_user}}" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
29 |
|
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
30 |
- name: install doord.py |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
31 |
become: yes |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
32 |
copy: |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
33 |
src: "../../../src/doord.py" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
34 |
dest: "{{hap_dest}}/python/doord.py" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
35 |
owner: "{{hap_user}}" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
36 |
group: "{{hap_user}}" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
37 |
mode: "0755" |
3044f32e7f74
Broke out separate hap-door role from hap-nodejs.
Luke Hoersten <luke@hoersten.org>
parents:
diff
changeset
|
38 |
notify: restart hap-nodejs service |