matterbridge: restart on changes #19
@ -34,6 +34,8 @@ matterbridge_files:
|
|||||||
general: {{ instances[instance]['general'] | default({}) }}
|
general: {{ instances[instance]['general'] | default({}) }}
|
||||||
accounts: {{ instances[instance]['accounts'] }}
|
accounts: {{ instances[instance]['accounts'] }}
|
||||||
gateways: {{ instances[instance]['gateways'] }}
|
gateways: {{ instances[instance]['gateways'] }}
|
||||||
|
- watch_in:
|
||||||
|
- service: matterbridge_{{ instance }}_service
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
|
|
||||||
{%- for instance in instances %}
|
{%- for instance in instances %}
|
||||||
@ -52,6 +54,8 @@ matterbridge_{{ instance }}_service:
|
|||||||
service.running:
|
service.running:
|
||||||
- name: matterbridge@{{ instance }}.service
|
- name: matterbridge@{{ instance }}.service
|
||||||
- enable: True
|
- enable: True
|
||||||
|
- watch:
|
||||||
|
- file: /etc/matterbridge/{{ instance }}.toml
|
||||||
{%- endfor %}
|
{%- endfor %}
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user