community / community.general / 6.6.8 / module / monit Manage the state of a program monitored via Monit Authors: Darryl Stoflet (@dstoflet), Simon Kelly (@snopoke)community.general.monit (6.6.8) — module
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
Manage the state of a program monitored via I(Monit).
- name: Manage the state of program httpd to be in started state community.general.monit: name: httpd state: started
name: description: - The name of the I(monit) program/process to manage. required: true type: str state: choices: - present - started - stopped - restarted - monitored - unmonitored - reloaded description: - The state of service. required: true type: str 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. type: int