community.general.icinga2_feature 模块 – 管理 Icinga2 功能
注意
此模块是 community.general 集合 (版本 10.1.0) 的一部分。
如果您使用的是 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用: ansible-galaxy collection install community.general。
要在 playbook 中使用它,请指定: community.general.icinga2_feature。
摘要
- 此模块可用于启用或禁用 Icinga2 功能。 
参数
| 参数 | 注释 | 
|---|---|
| 这是要启用或禁用的功能名称。 | |
| 如果设置为  如果设置为  如果设置为  如果设置为  选项 
 | 
属性
| 属性 | 支持 | 描述 | 
|---|---|---|
| 支持:完全支持 | 可以在  | |
| 支持:不支持 | 在差异模式下,将返回有关已更改内容(或可能需要在  | 
示例
- name: Enable ido-pgsql feature
  community.general.icinga2_feature:
    name: ido-pgsql
    state: present
- name: Disable api feature
  community.general.icinga2_feature:
    name: api
    state: absent
