add restart handler
This commit is contained in:
parent
b0eacff9d0
commit
4a7c35137a
@ -1 +1,8 @@
|
||||
---
|
||||
- name: Restart mosquitto service
|
||||
systemd:
|
||||
state: restarted
|
||||
daemon_reload: yes
|
||||
name: mosquitto
|
||||
listen:
|
||||
- "mosquitto_restart"
|
||||
|
@ -35,6 +35,8 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify:
|
||||
- mosquitto_restart
|
||||
|
||||
- name: Copy passwd files
|
||||
template:
|
||||
@ -46,6 +48,8 @@
|
||||
|
||||
- name: Hash passwd file
|
||||
shell: "mosquitto_passwd -U {{ mosquitto_passwd_file }}"
|
||||
notify:
|
||||
- mosquitto_restart
|
||||
|
||||
- name: Copy systemd unit files
|
||||
template:
|
||||
@ -54,6 +58,8 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
notify:
|
||||
- mosquitto_restart
|
||||
|
||||
- name: Enable systemd service
|
||||
systemd:
|
||||
|
Loading…
Reference in New Issue
Block a user