diff options
Diffstat (limited to 'roles/hap-nodejs')
| -rw-r--r-- | roles/hap-nodejs/tasks/main.yaml | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/roles/hap-nodejs/tasks/main.yaml b/roles/hap-nodejs/tasks/main.yaml index 048ac7f..cd3f71c 100644 --- a/roles/hap-nodejs/tasks/main.yaml +++ b/roles/hap-nodejs/tasks/main.yaml @@ -36,6 +36,7 @@ - name: clean up accessory examples become: yes file: path="{{hap_dest}}/accessories" state="absent" + changed_when: false - name: create accessories dir become: yes @@ -44,6 +45,17 @@ state: "directory" owner: "{{hap_user}}" group: "{{hap_user}}" + changed_when: false + +- name: install door accessory + become: yes + copy: + src: "../../../src/Door_accessory.js" + dest: "{{hap_dest}}/accessories/Door_accessory.js" + owner: "{{hap_user}}" + group: "{{hap_user}}" + notify: restart hap-nodejs service + changed_when: false - name: create python dir become: yes @@ -63,15 +75,6 @@ mode: "0755" notify: restart hap-nodejs service -- name: install door accessory - become: yes - copy: - src: "../../../src/Door_accessory.js" - dest: "{{hap_dest}}/accessories/Door_accessory.js" - owner: "{{hap_user}}" - group: "{{hap_user}}" - notify: restart hap-nodejs service - - name: build HAP-NodeJS become: yes become_user: "{{hap_user}}" |
