Add Ansible config for mqtt.bitlair.nl
This commit is contained in:
parent
4472319574
commit
fbd31bfd3d
7 changed files with 62 additions and 0 deletions
22
roles/mqtt-internal/tasks/main.yaml
Normal file
22
roles/mqtt-internal/tasks/main.yaml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue