Add zigbee2mqtt role and playbook

This commit is contained in:
yuri 2022-12-08 23:45:22 +01:00
commit 51fd3367db
No known key found for this signature in database
GPG key ID: E646779AC54AEC64
13 changed files with 211 additions and 0 deletions

View file

@ -0,0 +1,18 @@
[Unit]
Description=zigbee2mqtt
After=network.target
[Service]
Environment=ZIGBEE2MQTT_DATA=/home/zigbee2mqtt/zigbee2mqtt_data
Environment=NODE_ENV=production
ExecStart=/usr/bin/npm start
WorkingDirectory=/opt/zigbee2mqtt
StandardOutput=inherit
# Or use StandardOutput=null if you don't want Zigbee2MQTT messages filling syslog, for more options see systemd.exec(5)
StandardError=inherit
Restart=always
RestartSec=10s
User=zigbee2mqtt
[Install]
WantedBy=multi-user.target