add pidfile directory
This commit is contained in:
parent
ad4bcbf776
commit
e1a538c49d
@ -2,3 +2,4 @@ mosquitto_pid_file: /var/run/mosquitto.pid
|
||||
mosquitto_user: mosquitto
|
||||
mosquitto_group: mosquitto
|
||||
mosquitto_port: 61000
|
||||
mosquitto_pid_dir: /var/run/mosquitto
|
||||
|
@ -36,6 +36,13 @@
|
||||
group: root
|
||||
mode: 0644
|
||||
|
||||
- name: Create folder for PIDFile
|
||||
file:
|
||||
path: "{{ mosquitto_pid_dir }}"
|
||||
owner: "{{ mosquitto_user }}"
|
||||
group: "{{ mosquitto_group }}"
|
||||
state: directory
|
||||
|
||||
- name: Copy systemd unit files
|
||||
template:
|
||||
src: "etc/systemd/system/mosquitto.service.j2"
|
||||
|
Loading…
Reference in New Issue
Block a user