xoxys.zigbee2mqtt/handlers/main.yml

12 lines
322 B
YAML
Raw Normal View History

2018-11-11 02:11:10 +00:00
---
- name: Restart zigbee2mqtt service
2020-11-29 20:59:41 +00:00
docker_compose:
project_src: "{{ zigbee2mqtt_service_directory }}"
pull: yes
remove_orphans: yes
stopped: "{{ zigbee2mqtt_service_stopped }}"
restarted: "{{ not zigbee2mqtt_service_stopped }}"
2018-11-11 02:11:10 +00:00
listen: __zigbee2mqtt_restart
become: True
become_user: root