Various changes that I am not going to write a description for
This commit is contained in:
parent
b903b1b201
commit
a8f593d9b7
14 changed files with 187 additions and 26 deletions
|
@ -1,5 +1,7 @@
|
|||
---
|
||||
- name: restart_mosquitto
|
||||
- import_tasks: ../../common/handlers/main.yaml
|
||||
|
||||
- name: restart mosquitto
|
||||
systemd:
|
||||
name: mosquitto
|
||||
state: restarted
|
||||
|
|
|
@ -7,14 +7,17 @@
|
|||
name: mosquitto
|
||||
state: present
|
||||
|
||||
- name: Configure public bridge forwarding
|
||||
- name: Configure Mosquitto
|
||||
template:
|
||||
src: public-bridge.conf
|
||||
dest: /etc/mosquitto/conf.d/public-bridge.conf
|
||||
src: "{{ item }}"
|
||||
dest: "/etc/mosquitto/conf.d/{{ item }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify: restart_mosquitto
|
||||
notify: restart mosquitto
|
||||
with_items:
|
||||
- internal.conf
|
||||
- public-bridge.conf
|
||||
|
||||
- name: Start mosquitto
|
||||
systemd:
|
||||
|
|
6
roles/mqtt-internal/templates/internal.conf
Normal file
6
roles/mqtt-internal/templates/internal.conf
Normal file
|
@ -0,0 +1,6 @@
|
|||
# Managed by Ansible
|
||||
|
||||
listener 1883 ::
|
||||
listener 1883 0.0.0.0
|
||||
|
||||
allow_anonymous true
|
|
@ -1,18 +1,13 @@
|
|||
# Managed by Ansible
|
||||
|
||||
connection public-bridge
|
||||
|
||||
address {{ mqtt_internal_public_host }}
|
||||
|
||||
topic bitlair/state out
|
||||
topic bitlair/state/djo out
|
||||
topic bitlair/cam/+ out
|
||||
topic bitlair/music/+/state out
|
||||
topic bitlair/music/+/volume out
|
||||
topic bitlair/wifi/+/online out
|
||||
topic bitlair/climate/# out
|
||||
topic bitlair/temperature/+/current out
|
||||
topic bitlair/temperature/+/target out
|
||||
topic bitlair/humidity/+ out
|
||||
topic bitlair/lasercutter/+ out
|
||||
topic bitlair/flash out
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue