roles/hap-nodejs/tasks/main.yaml
changeset 7 55b8db128364
parent 1 bc6a0f25a229
child 8 e7007d23a144
equal deleted inserted replaced
6:0dab8e98044a 7:55b8db128364
    28 - name: install door accessory
    28 - name: install door accessory
    29   copy: src="../../../src/Door_accessory.js" dest="{{hap_dest}}/accessories/Door_accessory.js"
    29   copy: src="../../../src/Door_accessory.js" dest="{{hap_dest}}/accessories/Door_accessory.js"
    30   notify: restart hap-nodejs service
    30   notify: restart hap-nodejs service
    31 
    31 
    32 - name: build HAP-NodeJS
    32 - name: build HAP-NodeJS
    33   command: "npm install"
    33   npm: path="{{hap_dest}}"
    34   args:
       
    35     chdir: "{{hap_dest}}"
       
    36   changed_when: false
       
    37 
    34 
    38 - name: configure systemd service
    35 - name: configure systemd service
    39   become: yes
    36   become: yes
    40   template: src="hap-nodejs.service.j2" dest="/lib/systemd/system/hap-nodejs.service"
    37   template: src="hap-nodejs.service.j2" dest="/lib/systemd/system/hap-nodejs.service"
    41   notify: restart hap-nodejs service
    38   notify: restart hap-nodejs service