Add local mosquitto broker

This commit is contained in:
Stefan Haun 2022-07-23 18:49:46 +02:00
parent b9da1273ec
commit 4915a5e16d
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,2 @@
listener 1883
allow_anonymous true

View file

@ -25,6 +25,7 @@
- libmosquitto-dev - libmosquitto-dev
- libconfig-dev - libconfig-dev
- mpg123 - mpg123
- mosquitto
- name: Set MAC address for proper DHCP recognition - name: Set MAC address for proper DHCP recognition
@ -46,6 +47,18 @@
mode: '0644' mode: '0644'
### Mosquitto for local MQTT
- name: Local configuration for Mosquitto
ansible.builtin.copy:
src: files/platon/mosquitto-local.conf
dest: /etc/mosquitto/conf.d/platon-local.conf
owner: root
group: root
mode: '0644'
notify: restart mosquitto
### Sesam for SSH access ### Sesam for SSH access
# #
# Make sure to provide the .ssh/authorized_keys from backup, if needed # Make sure to provide the .ssh/authorized_keys from backup, if needed
@ -168,3 +181,11 @@
make make
cp agents/mqtt-clock ../agents/mqtt-clock cp agents/mqtt-clock ../agents/mqtt-clock
creates: "/home/{{ gatekeeper_user }}/mqtt-tools/agents/mqtt-clock" creates: "/home/{{ gatekeeper_user }}/mqtt-tools/agents/mqtt-clock"
handlers:
- name: restart mosquitto
service:
name: mosquitto
state: restarted
enabled: yes