add pidfile directory

This commit is contained in:
Robert Kaussow 2017-12-16 23:11:56 +01:00
parent ad4bcbf776
commit e1a538c49d
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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"