community.general.ilo_redfish_command 模块 – 使用 Redfish API 管理带外控制器
注意
此模块是 community.general 集合 (版本 10.1.0) 的一部分。
如果您使用的是 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用: ansible-galaxy collection install community.general。
要在 playbook 中使用它,请指定: community.general.ilo_redfish_command。
community.general 6.6.0 中的新增功能
摘要
- 在本地构建 Redfish URI 并将其发送到远程带外控制器以执行操作。 
参数
| 参数 | 注释 | 
|---|---|
| 用于向 iLO 进行身份验证的安全令牌。 | |
| 带外控制器的基本 URI。 | |
| 在带外控制器上执行的类别。 选项 
 | |
| 要在带外控制器上执行的命令列表。 | |
| 用于向 iLO 进行身份验证的密码。 | |
| 对 iLO 的 HTTP 请求的超时时间(秒)。 默认值:  | |
| 用于向 iLO 进行身份验证的用户名。 | 
属性
| 属性 | 支持 | 描述 | 
|---|---|---|
| 支持:不支持 | 可以在  | |
| 支持:不支持 | 在差异模式下,将返回有关已更改内容(或可能需要在  | 
示例
- name: Wait for iLO Reboot Completion
  community.general.ilo_redfish_command:
    category: Systems
    command: WaitforiLORebootCompletion
    baseuri: "{{ baseuri }}"
    username: "{{ username }}"
    password: "{{ password }}"
返回值
常见的返回值已在此处记录,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| 返回在 iLO 上执行的操作的状态。 返回:始终 | |
| 返回输出消息以及函数是否成功执行。 返回:成功 | |
| 在 iLO 上执行的操作的状态。 返回:成功 | |
| 根据操作是否成功返回 True/False。 返回:成功 | 
