community.windows.win_rabbitmq_plugin 模块 – 管理 RabbitMQ 插件
注意
此模块是 community.windows 集合(版本 2.3.0)的一部分。
如果您正在使用 ansible 包,您可能已经安装了这个集合。它不包含在 ansible-core 中。要检查是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install community.windows。
要在 playbook 中使用它,请指定:community.windows.win_rabbitmq_plugin。
概要
- 管理 RabbitMQ 插件。 
参数
| 参数 | 注释 | 
|---|---|
| 以逗号分隔的插件名称列表。 | |
| 仅启用缺少的插件。 不禁用不在 names 列表中的插件。 选项 
 | |
| 指定 Rabbit 的自定义安装前缀。 | |
| 指定是要启用还是禁用插件。 选项 
 | 
示例
- name: Enables the rabbitmq_management plugin
  community.windows.win_rabbitmq_plugin:
    names: rabbitmq_management
    state: enabled
返回值
常见返回值记录在此处,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 在任务运行期间禁用的插件列表。 返回: 始终 示例:  | |
| 在任务运行期间启用的插件列表。 返回: 始终 示例:  | 
