community.general.monit 模块 – 管理通过 Monit 监控的程序状态
注意
此模块是 community.general 集合(版本 10.1.0)的一部分。
如果您正在使用 ansible
包,则可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install community.general
。
要在 playbook 中使用它,请指定:community.general.monit
。
概要
管理通过 Monit 监控的程序状态。
参数
属性
示例
- name: Manage the state of program httpd to be in started state
community.general.monit:
name: httpd
state: started