Skip to content

Commit

Permalink
Add mosquitto handler
Browse files Browse the repository at this point in the history
  • Loading branch information
codyro committed Oct 31, 2024
1 parent 705fe9d commit bc2a1cf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/mqtt/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: Restart mosquitto
ansible.builtin.systemd:
name: mosquitto.service
state: restarted
...
2 changes: 2 additions & 0 deletions roles/mqtt/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
src: mosquitto.conf.j2
dest: /etc/mosquitto/mosquitto.conf
mode: "0600"
notify:
- Restart mosquitto
tags:
- mosquitto

Expand Down

0 comments on commit bc2a1cf

Please sign in to comment.