fix become handling
This commit is contained in:
parent
a9f4036a5b
commit
eacfcfb454
@ -6,3 +6,5 @@
|
||||
name: mosquitto
|
||||
enabled: yes
|
||||
listen: __mosquitto_restart
|
||||
become: True
|
||||
become_user: root
|
||||
|
@ -1,19 +0,0 @@
|
||||
## {{ ansible_managed }}
|
||||
[Unit]
|
||||
Description=Mosquitto MQTT Broker daemon
|
||||
ConditionPathExists=/etc/mosquitto/mosquitto.conf
|
||||
After=network.target
|
||||
Requires=network.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
RemainAfterExit=no
|
||||
StartLimitInterval=0
|
||||
PIDFile={{ mosquitto_pid_file }}
|
||||
ExecStart=/bin/sh -c "/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf -d"
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=on-failure
|
||||
RestartSec=2
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user