community.general.pingdom 模块 – 暂停/恢复 Pingdom 警报
注意
此模块是 community.general 集合 (版本 10.1.0) 的一部分。
如果您使用的是 ansible
包,则可能已经安装了此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install community.general
。您需要其他需求才能使用此模块,有关详细信息,请参阅 需求。
要在 playbook 中使用它,请指定: community.general.pingdom
。
概要
此模块允许您暂停/恢复 Pingdom 警报。
需求
执行此模块的主机需要以下需求。
此 pingdom python 库:https://github.com/mbabineau/pingdom-python
参数
参数 |
注释 |
---|---|
检查的 Pingdom ID。 |
|
Pingdom API 密钥。 |
|
Pingdom 用户密码。 |
|
定义检查是否应运行或暂停。 选项
|
|
Pingdom 用户 ID。 |
属性
属性 |
支持 |
描述 |
---|---|---|
支持:不支持 |
可以在 |
|
支持:不支持 |
在差异模式下,将返回有关已更改内容(或可能需要在 |
备注
注意
此模块尚不支持添加/删除检查。
示例
- name: Pause the check with the ID of 12345
community.general.pingdom:
uid: [email protected]
passwd: password123
key: apipassword123
checkid: 12345
state: paused
- name: Unpause the check with the ID of 12345
community.general.pingdom:
uid: [email protected]
passwd: password123
key: apipassword123
checkid: 12345
state: running