dellemc.openmanage.omevv_baseline_profile 模块 – 创建、修改或删除基准配置文件
注意
此模块是 dellemc.openmanage 集合(版本 9.9.0)的一部分。
如果您使用的是 ansible
包,则可能已经安装了此集合。它不包含在 ansible-core
中。要检查是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install dellemc.openmanage
。您需要其他要求才能使用此模块,请参阅 要求 了解详细信息。
要在 playbook 中使用它,请指定:dellemc.openmanage.omevv_baseline_profile
。
dellemc.openmanage 9.9.0 中的新增功能
概要
此模块允许您创建、修改或删除 OpenManage Enterprise Integration for VMware Center (OMEVV) 基准配置文件。
要求
执行此模块的主机需要以下要求。
python >= 3.9.6
参数
参数 |
注释 |
---|---|
包含用于验证的 CA 证书的隐私增强邮件 (PEM) 文件。 |
|
用于创建基准配置文件的群集列表。 当 state 为 |
|
作业必须运行的一周中的必需天数。 当 state 为 选项
|
|
基准配置文件的描述。 |
|
OpenManage Enterprise Modular 的 IP 地址或主机名。 |
|
是否等待作业完成。 选项
|
|
job_wait 的最大等待时间,以秒为单位。作业仅在此持续时间内被跟踪。 当 job_wait 为 默认值: |
|
基准配置文件的名称。 |
|
OpenManage Enterprise HTTPS 端口。 默认值: |
|
用于创建基准配置文件的存储库配置文件。 当 state 为 |
|
当创建新的基准配置文件时,需要 repository_profile、cluster、days 和 time。 当 state 为 选项
|
|
作业必须运行的时间,为 24 小时格式。 格式必须为 HH:MM。 当 state 为 |
|
套接字级别的超时时间,以秒为单位。 默认值: |
|
是否检查 SSL 证书。 - 如果为 选项
|
|
用于 VMware vCenter (OMEVV) 的 OpenManage Enterprise Integration 的密码。 如果未提供密码,则使用环境变量 示例:export OMEVV_VCENTER_PASSWORD=password |
|
用于 VMware vCenter (OMEVV) 的 OpenManage Enterprise Integration 的用户名。 如果未提供用户名,则使用环境变量 示例:export OMEVV_VCENTER_USERNAME=username |
|
vCenter 的通用唯一标识符 (UUID)。 可以使用 dellemc.openmanage.omevv_vcenter_info 模块检索 vCenter UUID 详细信息。 如果未提供 UUID,则将使用环境变量 示例:export OMEVV_VCENTER_UUID=uuid |
属性
属性 |
支持 |
描述 |
---|---|---|
支持:完全 |
运行任务进行验证,而不在目标计算机上执行操作。 |
|
支持:完全 |
运行任务以报告已进行的更改或必须应用的更改。 |
注释
注意
从可以直接访问 Dell OpenManage Enterprise 的系统运行此模块。
示例
---
- name: Create a baseline profile for multiple cluster
dellemc.openmanage.omevv_baseline_profile:
hostname: "192.168.0.1"
vcenter_uuid: "xxxxx"
vcenter_username: "username"
vcenter_password: "password"
ca_path: "path/to/ca_file"
state: "present"
name: "profile-1"
repository_profile: "repository-profile"
cluster:
- "cluster-1"
- "cluster-2"
days:
- "sunday"
- "wednesday"
time: "22:10"
- name: Modify a baseline profile
dellemc.openmanage.omevv_baseline_profile:
hostname: "192.168.0.1"
vcenter_uuid: "xxxxx"
vcenter_username: "username"
vcenter_password: "password"
ca_path: "path/to/ca_file"
state: "present"
name: "profile-1"
new_name: "profile-newname"
repository_profile: "repository-profile"
cluster:
- "cluster-1"
- "cluster-2"
days:
- "sunday"
time: "05:00"
- name: Delete a specific baseline profile
dellemc.openmanage.omevv_baseline_profile:
hostname: "192.168.0.1"
vcenter_uuid: "xxxxx"
vcenter_username: "username"
vcenter_password: "password"
ca_path: "path/to/ca_file"
state: "absent"
name: "profile-1"
返回值
通用返回值已在此处记录:此处,以下是此模块特有的字段
键 |
描述 |
---|---|
模块 HTTP 错误的详细信息。 返回: 在 HTTP 错误时 示例: |
|
配置文件操作的状态。 返回: 始终 示例: |