dellemc.openmanage.omevv_firmware_repository_profile_info 模块 – 获取 OMEVV 固件仓库配置文件信息。

注意

此模块是 dellemc.openmanage 集合 (版本 9.9.0) 的一部分。

如果您使用的是 ansible 包,则可能已经安装了此集合。它不包含在 ansible-core 中。要检查它是否已安装,请运行 ansible-galaxy collection list

要安装它,请使用: ansible-galaxy collection install dellemc.openmanage。您需要其他要求才能使用此模块,有关详细信息,请参见 要求

要在剧本中使用它,请指定: dellemc.openmanage.omevv_firmware_repository_profile_info

dellemc.openmanage 9.8.0 中的新增功能

概要

  • 此模块允许您检索 OMEVV 固件仓库配置文件信息。

要求

执行此模块的主机需要以下要求。

  • python >= 3.9.6

参数

参数

注释

ca_path

路径

包含用于验证的 CA 证书的隐私增强邮件 (PEM) 文件。

hostname

字符串 / 必需

OpenManage Enterprise Modular 的 IP 地址或主机名。

name

字符串

OMEVV 固件仓库配置文件的名称。

如果提供了 *name*,则模块仅检索指定的固件仓库配置文件信息。

port

整数

OpenManage Enterprise HTTPS 端口。

默认值: 443

timeout

整数

以秒为单位的套接字级别超时。

默认值: 30

validate_certs

布尔值

是否检查 SSL 证书。- 如果为 true,则将验证 SSL 证书。- 如果为 false,则不会验证 SSL 证书。

选项

  • false

  • true ← (默认)

vcenter_password

字符串

用于 VMware vCenter 的 OpenManage Enterprise 集成 (OMEVV) 的密码。

如果未提供密码,则使用环境变量 OMEVV_VCENTER_PASSWORD

示例:export OMEVV_VCENTER_PASSWORD=password

vcenter_username

字符串

用于 VMware vCenter 的 OpenManage Enterprise 集成 (OMEVV) 的用户名。

如果未提供用户名,则使用环境变量 OMEVV_VCENTER_USERNAME

示例:export OMEVV_VCENTER_USERNAME=username

vcenter_uuid

字符串

vCenter 的通用唯一标识符 (UUID)。

可以使用 dellemc.openmanage.omevv_vcenter_info 模块检索 vCenter UUID 详细信息。

如果未提供 UUID,则使用环境变量 OMEVV_VCENTER_UUID

示例:export OMEVV_VCENTER_UUID=uuid

属性

属性

支持

描述

check_mode

支持:完全支持

运行任务以进行验证,而无需对目标机器执行操作。

备注

注意

  • 此模块支持 IPv4 和 IPv6 地址。

示例

---
- name: Retrieve all firmware repository profile information.
  dellemc.openmanage.omevv_firmware_repository_profile_info:
    hostname: "192.168.0.1"
    vcenter_uuid: "xxxxxx"
    vcenter_username: "username"
    vcenter_password: "password"
    ca_path: "path/to/ca_file"

- name: Retrieve specific firmware repository profile information using profile name.
  dellemc.openmanage.omevv_firmware_repository_profile_info:
    hostname: "192.168.0.1"
    vcenter_uuid: "xxxxxx"
    vcenter_username: "username"
    vcenter_password: "password"
    ca_path: "path/to/ca_file"
    name: profile-1

返回值

公共返回值已在 此处 记录,以下是此模块特有的字段

描述

error_info

字典

HTTP 错误的详细信息。

返回:HTTP 错误时

示例: {"error": {"@Message.ExtendedInfo": [{"Message": "Unable to process the request because an error occurred.", "MessageArgs": [], "MessageId": "GEN1234", "RelatedProperties": [], "Resolution": "Retry the operation. If the issue persists, contact your system administrator.", "Severity": "Critical"}], "code": "Base.1.0.GeneralError", "message": "A general error has occurred. See ExtendedInfo for more information."}}

msg

字符串

检索操作的固件仓库配置文件信息的状态。

返回:始终

示例: "Successfully retrieved the firmware repository profile information."

profile_info

列表 / 元素=字典

关于 vCenter 的信息。

返回:成功

示例: [{"catalogCreatedDate": "2024-08-27T01:58:10Z", "catalogLastChecked": "2024-09-09T19:30:16Z", "checkCertificate": null, "createdBy": "OMEVV Default", "description": "最新 戴尔 固件", "factoryCreated": true, "factoryType": "Default", "fileName": "catalog.xml", "id": 1000, "modifiedBy": null, "owner": "OMEVV", "profileName": "戴尔 默认 目录", "profileType": "固件", "protocolType": "HTTPS", "sharePath": "https://downloads.dell.com//catalog/catalog.xml.gz", "status": "成功"}, {"catalogCreatedDate": "2024-08-27T01:58:10Z", "catalogLastChecked": "2024-09-09T19:30:16Z", "checkCertificate": null, "createdBy": "OMEVV Default", "description": "最新 戴尔 固件", "factoryCreated": true, "factoryType": "Default", "fileName": "catalog.xml", "id": 1001, "modifiedBy": null, "owner": "OMEVV", "profileName": "戴尔 默认 目录", "profileType": "固件", "protocolType": "HTTPS", "sharePath": "https://downloads.dell.com//catalog/catalog.xml.gz", "status": "成功"}]

作者

  • Lovepreet Singh (@singh-lovepreet1)