equal
deleted
inserted
replaced
34 with_items: "{{hap_npm_packages}}" |
34 with_items: "{{hap_npm_packages}}" |
35 |
35 |
36 - name: clean up accessory examples |
36 - name: clean up accessory examples |
37 become: yes |
37 become: yes |
38 file: path="{{hap_dest}}/accessories" state="absent" |
38 file: path="{{hap_dest}}/accessories" state="absent" |
|
39 changed_when: false |
39 |
40 |
40 - name: create accessories dir |
41 - name: create accessories dir |
41 become: yes |
42 become: yes |
42 file: |
43 file: |
43 path: "{{hap_dest}}/accessories" |
44 path: "{{hap_dest}}/accessories" |
44 state: "directory" |
45 state: "directory" |
45 owner: "{{hap_user}}" |
46 owner: "{{hap_user}}" |
46 group: "{{hap_user}}" |
47 group: "{{hap_user}}" |
|
48 changed_when: false |
|
49 |
|
50 - name: install door accessory |
|
51 become: yes |
|
52 copy: |
|
53 src: "../../../src/Door_accessory.js" |
|
54 dest: "{{hap_dest}}/accessories/Door_accessory.js" |
|
55 owner: "{{hap_user}}" |
|
56 group: "{{hap_user}}" |
|
57 notify: restart hap-nodejs service |
|
58 changed_when: false |
47 |
59 |
48 - name: create python dir |
60 - name: create python dir |
49 become: yes |
61 become: yes |
50 file: |
62 file: |
51 path: "{{hap_dest}}/python" |
63 path: "{{hap_dest}}/python" |
61 owner: "{{hap_user}}" |
73 owner: "{{hap_user}}" |
62 group: "{{hap_user}}" |
74 group: "{{hap_user}}" |
63 mode: "0755" |
75 mode: "0755" |
64 notify: restart hap-nodejs service |
76 notify: restart hap-nodejs service |
65 |
77 |
66 - name: install door accessory |
|
67 become: yes |
|
68 copy: |
|
69 src: "../../../src/Door_accessory.js" |
|
70 dest: "{{hap_dest}}/accessories/Door_accessory.js" |
|
71 owner: "{{hap_user}}" |
|
72 group: "{{hap_user}}" |
|
73 notify: restart hap-nodejs service |
|
74 |
|
75 - name: build HAP-NodeJS |
78 - name: build HAP-NodeJS |
76 become: yes |
79 become: yes |
77 become_user: "{{hap_user}}" |
80 become_user: "{{hap_user}}" |
78 npm: path="{{hap_dest}}" |
81 npm: path="{{hap_dest}}" |
79 |
82 |