Hello,
I’m using Ansible’s Monit module, to restart a service like so:
`
name: restart resque-x (monit)
monit:
name: resque-x
state: restarted
`
The issue is that it doesn’t wait for the process to restart (needs about 30 secs) and immediately returns the following error:
resque-x process not presently configured with monit
A few points here:
- When I actually observe monit activity on the managed node, I clearly see service resque-x being stopped and started. So the error message is verified to be incorrect.
- The docs indicate that the module will wait a default 300 seconds for the operation to complete. That is not happening.
- I also tried to explicitly define the timeout attribute. It had no impact on the behavior on the above task.
Please advise.