Add Ansible config for mqtt.bitlair.nl

This commit is contained in:
polyfloyd 2021-05-24 15:26:09 +02:00
parent 4472319574
commit fbd31bfd3d
7 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,22 @@
---
- name: mqtt-internal
tags: mqtt_internal
block:
- name: Install broker
apt:
name: mosquitto
- name: Configure public bridge forwarding
template:
src: public-bridge.conf
dest: /etc/mosquitto/conf.d/public-bridge.conf
owner: root
group: root
mode: 0644
notify: restart_mosquitto
- name: Start mosquitto
systemd:
name: mosquitto
state: started
enabled: yes