xoxys.zigbee2mqtt/handlers/main.yml

12 lines
322 B
YAML

---
- name: Restart zigbee2mqtt service
docker_compose:
project_src: "{{ zigbee2mqtt_service_directory }}"
pull: yes
remove_orphans: yes
stopped: "{{ zigbee2mqtt_service_stopped }}"
restarted: "{{ not zigbee2mqtt_service_stopped }}"
listen: __zigbee2mqtt_restart
become: True
become_user: root