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
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
notify:
|
||||||
|
- mosquitto_restart
|
||||||
|
|
||||||
- name: Copy passwd files
|
- name: Copy passwd files
|
||||||
template:
|
template:
|
||||||
@ -46,6 +48,8 @@
|
|||||||
|
|
||||||
- name: Hash passwd file
|
- name: Hash passwd file
|
||||||
shell: "mosquitto_passwd -U {{ mosquitto_passwd_file }}"
|
shell: "mosquitto_passwd -U {{ mosquitto_passwd_file }}"
|
||||||
|
notify:
|
||||||
|
- mosquitto_restart
|
||||||
|
|
||||||
- name: Copy systemd unit files
|
- name: Copy systemd unit files
|
||||||
template:
|
template:
|
||||||
@ -54,6 +58,8 @@
|
|||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
mode: 0644
|
mode: 0644
|
||||||
|
notify:
|
||||||
|
- mosquitto_restart
|
||||||
|
|
||||||
- name: Enable systemd service
|
- name: Enable systemd service
|
||||||
systemd:
|
systemd:
|
||||||
|
Loading…
Reference in New Issue
Block a user