Note
This module is part of the community.general collection (version 10.7.3).
You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install community.general.
To use it in a playbook, specify: community.general.monit.
Parameter | Comments |
|---|---|
name string / required | The name of the |
state string / required | The state of service. Choices:
|
timeout integer | If there are pending actions for the service monitored by monit, then it checks for up to this many seconds to verify the requested action has been performed. The module sleeps for five seconds between each check. Default: |
Attribute | Support | Description |
|---|---|---|
check_mode | Support: full | Can run in |
diff_mode | Support: none | Will return details on what has changed (or possibly needs changing in |
- name: Manage the state of program httpd to be in started state
community.general.monit:
name: httpd
state: started
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/general/monit_module.html