community / community.general / 0.1.1 / module / monit Manage the state of a program monitored via Monit Authors: Darryl Stoflet (@dstoflet) preview | supported by communitycommunity.general.monit (0.1.1) — module
Install with ansible-galaxy collection install community.general:==0.1.1
collections: - name: community.general version: 0.1.1
Manage the state of a program monitored via I(Monit)
# Manage the state of program "httpd" to be in "started" state. - monit: name: httpd state: started
name: description: - The name of the I(monit) program/process to manage required: true state: choices: - present - started - stopped - restarted - monitored - unmonitored - reloaded description: - The state of service required: true timeout: default: 300 description: - If there are pending actions for the service monitored by monit, then Ansible will check for up to this many seconds to verify the requested action has been performed. Ansible will sleep for five seconds between each check.