Add local mosquitto broker
This commit is contained in:
parent
b9da1273ec
commit
4915a5e16d
2 changed files with 23 additions and 0 deletions
2
files/platon/mosquitto-local.conf
Normal file
2
files/platon/mosquitto-local.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
listener 1883
|
||||
allow_anonymous true
|
21
platon.yml
21
platon.yml
|
@ -25,6 +25,7 @@
|
|||
- libmosquitto-dev
|
||||
- libconfig-dev
|
||||
- mpg123
|
||||
- mosquitto
|
||||
|
||||
|
||||
- name: Set MAC address for proper DHCP recognition
|
||||
|
@ -46,6 +47,18 @@
|
|||
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
|
||||
#
|
||||
# Make sure to provide the .ssh/authorized_keys from backup, if needed
|
||||
|
@ -168,3 +181,11 @@
|
|||
make
|
||||
cp agents/mqtt-clock ../agents/mqtt-clock
|
||||
creates: "/home/{{ gatekeeper_user }}/mqtt-tools/agents/mqtt-clock"
|
||||
|
||||
|
||||
handlers:
|
||||
- name: restart mosquitto
|
||||
service:
|
||||
name: mosquitto
|
||||
state: restarted
|
||||
enabled: yes
|
||||
|
|
Loading…
Reference in a new issue