mirror of https://github.com/ansible/ansible.git
monit: Add retry for pending/initializing services
If there are already ongoing actions for a process managed by monit, the module would exit unsuccessfully. It could also give off false positives because it did not determine whether the service was started/stopped when it was in a pending state. Which might be turning the service off, but the action was to start it. For example "Running - pending stop" would be regarded as the service running and "state=enabled" would do nothing. This will make Ansible wait for the state to finalize, or a timeout decided by the new `max_retries` option, before it decides what to do. This fixes issue #244.pull/18777/head
parent
5f743c4fdc
commit
469bf9ebd0
Loading…
Reference in New Issue