--- - name: "[OpenRC] Restart service: zigbee2mqtt (to deploy config changes)" service: name: zigbee2mqtt state: restarted when: - ansible_service_mgr == "openrc" listen: "Restart zigbee2mqtt" - name: "[systemd] Restart service: zigbee2mqtt (to deploy config changes)" systemd: daemon_reload: yes name: zigbee2mqtt state: restarted when: - ansible_service_mgr == "systemd" listen: "Restart zigbee2mqtt"