Automated changes from linter ;P

This commit is contained in:
Mark Janssen 2024-07-11 20:47:52 +02:00
parent 44b73a216f
commit f7f04e7a41
Signed by: foobar
GPG key ID: D8674D8FC4F69BD2
65 changed files with 392 additions and 324 deletions

View file

@ -1,13 +1,13 @@
---
- name: Install dependencies
apt:
ansible.builtin.apt:
name:
- libjson-xs-perl
- liblinux-epoll-perl
- mosquitto
- name: Allow MQTT
iptables:
ansible.builtin.iptables:
chain: INPUT
protocol: tcp
destination_port: "{{ item.port }}"
@ -21,10 +21,11 @@
notify: persist iptables
- name: Install mqtt-simple
command: cpan Net::MQTT::Simple
ansible.builtin.command:
cmd: cpan Net::MQTT::Simple
- name: Clone mqtt2web source
git:
ansible.builtin.git:
repo: https://github.com/bitlair/mqtt2web.git
version: master
dest: /opt/mqtt2web
@ -32,7 +33,7 @@
notify: restart mqtt2web
- name: Install mqtt2web service file
template:
ansible.builtin.template:
src: mqtt2web.service
dest: /etc/systemd/system/mqtt2web.service
owner: root
@ -42,10 +43,10 @@
- daemon reload
- restart mqtt2web
- meta: flush_handlers
- ansible.builtin.meta: flush_handlers
- name: Enable mqtt2web
systemd:
ansible.builtin.systemd:
name: mqtt2web
state: started
enabled: true