www/mqtt: Install mqtt2web dependencies

This commit is contained in:
polyfloyd 2024-04-14 13:26:37 +02:00
parent e1be9a0781
commit 1511f6df22
2 changed files with 10 additions and 5 deletions

View file

@ -11,4 +11,3 @@
systemd:
name: mqtt2web
state: restarted
daemon_reload: true

View file

@ -1,7 +1,10 @@
---
- name: Install Mosquitto
- name: Install dependencies
apt:
name: mosquitto
name:
- libjson-xs-perl
- liblinux-epoll-perl
- mosquitto
- name: Allow MQTT
iptables:
@ -35,11 +38,14 @@
owner: root
group: root
mode: 0644
notify: restart mqtt2web
notify:
- daemon reload
- restart mqtt2web
- meta: flush_handlers
- name: Enable mqtt2web
systemd:
name: mqtt2web
state: started
enabled: true
daemon_reload: true