dellemc.openmanage.ome_firmware_baseline 模块 – 在 OpenManage Enterprise 或 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_firmware_baseline
。
dellemc.openmanage 2.0.0 中的新增功能
概要
此模块允许在 OpenManage Enterprise 或 OpenManage Enterprise Modular 上创建、修改或删除固件基线。
要求
执行此模块的主机上需要以下要求。
python >= 3.9.6
参数
参数 |
注释 |
---|---|
正在创建的基线的描述。 |
|
现有基线的 ID。 此选项与 baseline_name 互斥。 |
|
基线的名称。 此选项与 baseline_id 互斥。 |
|
包含用于验证的 CA 证书的隐私增强邮件 (PEM) 文件。 |
|
要与基线关联的目录的名称。 |
|
组名称列表。 此选项与 device_ids 和 device_service_tags 互斥。 |
|
设备 ID 列表。 此选项与 device_service_tags 和 device_group_names 互斥。 |
|
设备服务标签列表。 此选项与 device_ids 和 device_group_names 互斥。 |
|
指示是否允许基线中设备的固件降级。 如果未在基线创建期间提供,则此值默认设置为 选择
|
|
仅选择不需要重新启动的组件,允许创建仅包含目标设备不需要重新启动的目标设备的组件的固件/驱动程序基线。 选择
|
|
OpenManage Enterprise 或 OpenManage Enterprise Modular IP 地址或主机名。 |
|
指示存储库是否包含 64 位 DUP。 如果未在基线创建期间提供,则此值默认设置为 选择
|
|
提供等待作业完成的选项。 当 state 为 选择
|
|
job_wait 的最大等待时间(以秒为单位)。作业仅在此持续时间内被跟踪。 当 job_wait 为 默认值: |
|
基线的新名称。 |
|
OpenManage Enterprise 或 OpenManage Enterprise Modular 密码。 如果未提供密码,则使用环境变量 示例:export OME_PASSWORD=password |
|
OpenManage Enterprise 或 OpenManage Enterprise Modular HTTPS 端口。 默认值: |
|
选择
|
|
套接字级别的超时时间(以秒为单位)。 默认值: |
|
OpenManage Enterprise 或 OpenManage Enterprise Modular 用户名。 如果未提供用户名,则使用环境变量 示例:export OME_USERNAME=username |
|
如果 仅在个人控制的站点上使用自签名证书时才配置 在集合版本 选择
|
|
身份验证令牌。 如果未提供 x_auth_token,则会使用环境变量 示例:export OME_X_AUTH_TOKEN=x_auth_token |
注意
注意
从可以直接访问 Dell OpenManage Enterprise 或 OpenManage Enterprise Modular 的系统运行此模块。
device_group_names 选项不适用于 OpenManage Enterprise Modular。
此模块支持
check_mode
。
示例
---
- name: Create baseline for device IDs
dellemc.openmanage.ome_firmware_baseline:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
baseline_name: "baseline_name"
baseline_description: "baseline_description"
catalog_name: "catalog_name"
device_ids:
- 1010
- 2020
- name: Create baseline for device IDs with no reboot required
dellemc.openmanage.ome_firmware_baseline:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
baseline_name: "baseline_name"
baseline_description: "baseline_description"
catalog_name: "catalog_name"
filter_no_reboot_required: true
device_ids:
- 1010
- 2020
- name: Create baseline for servicetags
dellemc.openmanage.ome_firmware_baseline:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
baseline_name: "baseline_name"
baseline_description: "baseline_description"
catalog_name: "catalog_name"
device_service_tags:
- "SVCTAG1"
- "SVCTAG2"
- name: Create baseline for servicetags with no reboot required
dellemc.openmanage.ome_firmware_baseline:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
baseline_name: "baseline_name"
baseline_description: "baseline_description"
catalog_name: "catalog_name"
filter_no_reboot_required: true
device_service_tags:
- "SVCTAG1"
- "SVCTAG2"
- name: Create baseline for device groups without job tracking
dellemc.openmanage.ome_firmware_baseline:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
baseline_name: "baseline_name"
baseline_description: "baseline_description"
catalog_name: "catalog_name"
device_group_names:
- "Group1"
- "Group2"
job_wait: false
- name: Modify an existing baseline
dellemc.openmanage.ome_firmware_baseline:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
baseline_name: "existing_baseline_name"
new_baseline_name: "new_baseline_name"
baseline_description: "new baseline_description"
catalog_name: "catalog_other"
device_group_names:
- "Group3"
- "Group4"
- "Group5"
downgrade_enabled: false
is_64_bit: true
- name: Modify no reboot filter in existing baseline
dellemc.openmanage.ome_firmware_baseline:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
baseline_name: "existing_baseline_name"
new_baseline_name: "new_baseline_name"
filter_no_reboot_required: true
- name: Delete a baseline
dellemc.openmanage.ome_firmware_baseline:
hostname: "192.168.0.1"
username: "username"
password: "password"
ca_path: "/path/to/ca_cert.pem"
state: absent
baseline_name: "baseline_name"
返回值
常见返回值记录在此处,以下是此模块特有的字段
键 |
描述 |
---|---|
已删除基线的 ID。 返回:当state为 示例: |
|
基线状态的详细信息。 返回:成功 示例: |
|
http 错误的详细信息。 返回:当出现 http 错误时 示例: |
|
基线任务的作业 ID。 返回:当基线作业处于运行状态时 示例: |
|
固件基线操作的总体状态。 返回:总是 示例: |