homebridge/tasks/main.yaml
changeset 31 c51c4eaea2a7
parent 12 80a6e9af6aa9
child 32 78242f9f4010
equal deleted inserted replaced
30:bf16f2477a11 31:c51c4eaea2a7
    30   notify: restart homebridge service
    30   notify: restart homebridge service
    31 
    31 
    32 - name: install platform accessories
    32 - name: install platform accessories
    33   become: yes
    33   become: yes
    34   npm: name="{{item}}" global="yes"
    34   npm: name="{{item}}" global="yes"
       
    35   with_items: "{{homebridge_npm_packages}}"
    35   notify: restart homebridge service
    36   notify: restart homebridge service
    36   with_items: "{{homebridge_npm_packages}}"
       
    37 
    37 
    38 - name: configure homebridge
    38 - name: configure homebridge
    39   become: yes
    39   become: yes
    40   template:
    40   template:
    41     src: "config.json.j2"
    41     src: "{{homebridge_config_template}}"
    42     dest: "{{homebridge_dir}}/config.json"
    42     dest: "{{homebridge_dir}}/config.json"
    43   notify: restart homebridge service
    43   notify: restart homebridge service
    44 
    44 
    45 - name: configure systemd service
    45 - name: configure systemd service
    46   become: yes
    46   become: yes