roles/hap-nodejs/tasks/main.yaml
changeset 9 511e97bd5566
parent 8 e7007d23a144
child 15 6913019b9492
--- a/roles/hap-nodejs/tasks/main.yaml	Mon Jan 29 23:19:00 2018 -0600
+++ b/roles/hap-nodejs/tasks/main.yaml	Tue Jan 30 08:41:33 2018 -0600
@@ -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}}"