roles/hap-nodejs/tasks/main.yaml
changeset 18 3044f32e7f74
parent 17 69a7d69de562
child 25 bc6c646f1814
equal deleted inserted replaced
17:69a7d69de562 18:3044f32e7f74
    27     creates: "{{hap_dest}}"
    27     creates: "{{hap_dest}}"
    28     owner: "{{hap_user}}"
    28     owner: "{{hap_user}}"
    29     group: "{{hap_user}}"
    29     group: "{{hap_user}}"
    30   notify: restart hap-nodejs service
    30   notify: restart hap-nodejs service
    31 
    31 
    32 - name: install python-shell npm packages
       
    33   become: yes
       
    34   npm: name="python-shell" global="yes"
       
    35   notify: restart hap-nodejs service
       
    36 
       
    37 - name: remove example accessories
    32 - name: remove example accessories
    38   become: yes
    33   become: yes
    39   file: path="{{hap_dest}}/accessories/{{item}}" state="absent"
    34   file: path="{{hap_dest}}/accessories/{{item}}" state="absent"
    40   with_items: "{{hap_example_accessories}}"
    35   with_items: "{{hap_example_accessories}}"
    41 
       
    42 - name: install door accessory
       
    43   become: yes
       
    44   copy:
       
    45     src: "../../../src/Door_accessory.js"
       
    46     dest: "{{hap_dest}}/accessories/Door_accessory.js"
       
    47     owner: "{{hap_user}}"
       
    48     group: "{{hap_user}}"
       
    49   notify: restart hap-nodejs service
       
    50 
       
    51 - name: create python dir
       
    52   become: yes
       
    53   file:
       
    54     path: "{{hap_dest}}/python"
       
    55     state: "directory"
       
    56     owner: "{{hap_user}}"
       
    57     group: "{{hap_user}}"
       
    58 
       
    59 - name: install doord.py
       
    60   become: yes
       
    61   copy:
       
    62     src: "../../../src/doord.py"
       
    63     dest: "{{hap_dest}}/python/doord.py"
       
    64     owner: "{{hap_user}}"
       
    65     group: "{{hap_user}}"
       
    66     mode: "0755"
       
    67   notify: restart hap-nodejs service
       
    68 
    36 
    69 - name: build HAP-NodeJS
    37 - name: build HAP-NodeJS
    70   become: yes
    38   become: yes
    71   become_user: "{{hap_user}}"
    39   become_user: "{{hap_user}}"
    72   npm: path="{{hap_dest}}"
    40   npm: path="{{hap_dest}}"