dellemc.openmanage.ome_server_interface_profile_info 模块 – 获取 OpenManage Enterprise Modular 上服务器接口配置文件的信息。
注意
此模块是 dellemc.openmanage 集合 (版本 9.9.0) 的一部分。
如果您使用的是 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list。
要安装它,请使用:ansible-galaxy collection install dellemc.openmanage。您需要其他要求才能使用此模块,请参阅 需求 获取详细信息。
要在 playbook 中使用它,请指定:dellemc.openmanage.ome_server_interface_profile_info。
dellemc.openmanage 5.1.0 中的新增功能
概要
- 此模块允许检索 OpenManage Enterprise Modular 上服务器接口配置文件的信息。 
需求
执行此模块的主机需要以下需求。
- python >= 3.9.6 
参数
| 参数 | 注释 | 
|---|---|
| 包含用于验证的 CA 证书的隐私增强邮件 (PEM) 文件。 | |
| 设备的 ID。 device_id 与 device_service_tag 互斥。 | |
| 设备的服务标签。 device_service_tag 与 device_id 互斥。 | |
| OpenManage Enterprise Modular 的 IP 地址或主机名。 | |
| OpenManage Enterprise Modular 的 HTTPS 端口。 默认值:  | |
| 套接字级别超时(秒)。 默认值:  | |
| 如果为  仅在使用自签名证书的个人控制站点上配置  在集合版本  选项 
 | |
| 身份验证令牌。 如果未提供 x_auth_token,则使用环境变量  示例:export OME_X_AUTH_TOKEN=x_auth_token | 
备注
注意
- 从此模块可以直接访问 OpenManage Enterprise Modular 的系统运行此模块。 
- 此模块支持 - check_mode。
示例
---
- name: Retrieves the server interface profiles of all the device using device ID.
  dellemc.openmanage.ome_server_interface_profile_info:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
    ca_path: "/path/to/ca_cert.pem"
    device_id:
      - 10001
      - 10002
- name: Retrieves the server interface profiles of all the device using device service tag.
  dellemc.openmanage.ome_server_interface_profile_info:
    hostname: "192.168.0.1"
    username: "username"
    password: "password"
    ca_path: "/path/to/ca_cert.pem"
    device_service_tag:
      - 6GHH6H2
      - 6KHH6H3
返回值
常见返回值已在 此处 记录,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| HTTP 错误的详细信息。 返回:HTTP 错误时 示例:  | |
| 服务器接口配置文件信息的总体状态。 返回:成功时 示例:  | |
| 返回收集的服务器接口配置文件信息。 返回:成功时 示例: | 
