roles/hap-door/tasks/main.yaml
changeset 18 3044f32e7f74
equal deleted inserted replaced
17:69a7d69de562 18:3044f32e7f74
       
     1 ---
       
     2 
       
     3 - name: install python3 apt packages
       
     4   become: yes
       
     5   apt: name="python3"
       
     6   notify: restart hap-nodejs service
       
     7 
       
     8 - name: install python-shell npm packages
       
     9   become: yes
       
    10   npm: name="python-shell" global="yes"
       
    11   notify: restart hap-nodejs service
       
    12 
       
    13 - name: install door accessory
       
    14   become: yes
       
    15   copy:
       
    16     src: "../../../src/Door_accessory.js"
       
    17     dest: "{{hap_dest}}/accessories/Door_accessory.js"
       
    18     owner: "{{hap_user}}"
       
    19     group: "{{hap_user}}"
       
    20   notify: restart hap-nodejs service
       
    21 
       
    22 - name: create python dir
       
    23   become: yes
       
    24   file:
       
    25     path: "{{hap_dest}}/python"
       
    26     state: "directory"
       
    27     owner: "{{hap_user}}"
       
    28     group: "{{hap_user}}"
       
    29 
       
    30 - name: install doord.py
       
    31   become: yes
       
    32   copy:
       
    33     src: "../../../src/doord.py"
       
    34     dest: "{{hap_dest}}/python/doord.py"
       
    35     owner: "{{hap_user}}"
       
    36     group: "{{hap_user}}"
       
    37     mode: "0755"
       
    38   notify: restart hap-nodejs service