• 博客
  • Ansible 社区论坛
  • 文档
Ansible Logo
Ansible 社区文档
Ansible

Ansible 入门

  • Ansible 入门指南
  • 执行环境入门指南

安装、升级和配置

  • 安装指南
  • Ansible 移植指南

使用 Ansible

  • 构建 Ansible 清单
  • 使用 Ansible 命令行工具
  • 使用 Ansible 剧本
  • 使用 Ansible vault 保护敏感数据
  • 使用 Ansible 模块和插件
  • 使用 Ansible 集合
  • 在 Windows 和 BSD 上使用 Ansible
  • Ansible 提示和技巧

为 Ansible 作出贡献

  • Ansible 社区指南
  • Ansible 集合贡献者指南
  • ansible-core 贡献者指南
  • 高级贡献者指南
  • Ansible 文档风格指南

扩展 Ansible

  • 开发者指南

常见的 Ansible 场景

  • 旧版公共云指南

网络自动化

  • 网络入门
  • 网络高级主题
  • 网络开发者指南

Ansible Galaxy

  • Galaxy 用户指南
  • Galaxy 开发者指南

参考和附录

  • 集合索引
    • Amazon 命名空间中的集合
    • Ansible 命名空间中的集合
    • Arista 命名空间中的集合
    • AWX 命名空间中的集合
    • Azure 命名空间中的集合
    • Check Point 命名空间中的集合
    • Chocolatey 命名空间中的集合
    • Cisco 命名空间中的集合
    • Cloud 命名空间中的集合
    • Cloudscale_ch 命名空间中的集合
    • Community 命名空间中的集合
    • Containers 命名空间中的集合
    • CyberArk 命名空间中的集合
    • Dellemc 命名空间中的集合
      • Dellemc.Enterprise_Sonic
      • Dellemc.Openmanage
        • 描述
        • 插件索引
        • 角色索引
      • Dellemc.Powerflex
      • Dellemc.Unity
    • F5 Networks 命名空间中的集合
    • Fortinet 命名空间中的集合
    • FRR 命名空间中的集合
    • Gluster 命名空间中的集合
    • Google 命名空间中的集合
    • Grafana 命名空间中的集合
    • Hetzner 命名空间中的集合
    • HPE 命名空间中的集合
    • IBM 命名空间中的集合
    • IEISystem 命名空间中的集合
    • Infinidat 命名空间中的集合
    • Infoblox 命名空间中的集合
    • Inspur 命名空间中的集合
    • Juniper Networks 命名空间中的集合
    • Kaytus 命名空间中的集合
    • Kubernetes 命名空间中的集合
    • KubeVirt 命名空间中的集合
    • LowlyDBA 命名空间中的集合
    • Mellanox 命名空间中的集合
    • Microsoft 命名空间中的集合
    • NetApp 命名空间中的集合
    • NetApp_eseries 命名空间中的集合
    • NetBox 命名空间中的集合
    • NGINX IO 命名空间中的集合
    • OpenStack 命名空间中的集合
    • Open vSwitch 命名空间中的集合
    • oVirt 命名空间中的集合
    • Pure Storage 命名空间中的集合
    • Sensu 命名空间中的集合
    • ServiceNow 命名空间中的集合
    • Splunk 命名空间中的集合
    • T-Systems MMS 命名空间中的集合
    • Telekom MMS 命名空间中的集合
    • The Foreman 命名空间中的集合
    • VMware 命名空间中的集合
    • Vultr 命名空间中的集合
    • VyOS 命名空间中的集合
    • WTI 命名空间中的集合
  • 所有模块和插件的索引
  • 剧本关键字
  • 返回值
  • Ansible 配置设置
  • 控制 Ansible 的行为:优先级规则
  • YAML 语法
  • Python 3 支持
  • 解释器发现
  • 发布和维护
  • 测试策略
  • 健全性测试
  • 常见问题
  • 术语表
  • Ansible 参考:模块实用程序
  • 特殊变量
  • Red Hat Ansible Automation Platform
  • Ansible Automation Hub
  • 记录 Ansible 输出

路线图

  • Ansible 路线图
  • ansible-core 路线图




Ansible
  • 集合索引
  • Dellemc 命名空间中的集合
  • Dellemc.Openmanage
  • dellemc.openmanage.dellemc_configure_idrac_services 模块 – 配置 iDRAC 服务相关属性


dellemc.openmanage.dellemc_configure_idrac_services 模块 – 配置 iDRAC 服务相关属性

注意

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

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

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

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

dellemc.openmanage 1.0.0 中的新增功能

  • 已弃用

  • 摘要

  • 要求

  • 参数

  • 备注

  • 示例

  • 返回值

  • 状态

已弃用

移除于:

2024-12-31 后的主要版本

原因:

已替换为 dellemc.openmanage.idrac_attributes。

替代方案:

请改用 dellemc.openmanage.idrac_attributes。

摘要

  • 此模块允许配置 iDRAC 服务相关的属性。

要求

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

  • omsdk >= 1.2.488

  • python >= 3.9.6

参数

参数

注释

alert_port

整数

必须用于 SNMP 陷阱的 iDRAC 端口号。默认值为 162,可接受的范围是 1 到 65535 之间。

默认值: 162

ca_path

路径

dellemc.openmanage 5.0.0 中新增

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

community_name

字符串

iDRAC 的 SNMP 社区名称。iDRAC 使用它来验证从请求 SNMP 数据访问的远程系统接收到的 SNMP 查询。

discovery_port

整数

iDRAC 上的 SNMP 代理端口。默认值为 161,可接受的范围是 1 到 65535 之间。

默认值: 161

enable_web_server

字符串

是否启用或禁用 iDRAC 的 Web 服务器配置。

选项

  • "已启用"

  • "已禁用"

http_port

整数

HTTP 访问端口。

https_port

整数

HTTPS 访问端口。

idrac_ip

字符串 / 必填

iDRAC IP 地址。

idrac_password

别名:idrac_pwd

字符串 / 必填

iDRAC 用户密码。

idrac_port

整数

iDRAC 端口。

默认值: 443

idrac_user

字符串 / 必填

iDRAC 用户名。

ipmi_lan

字典

在 iDRAC 上设置的用于 SNMP 设置的社区名称。

community_name

字符串

iDRAC 发送 SNMP 和 IPMI 陷阱时使用此选项。远程系统会检查社区名称,该名称是陷阱发送到的目标。

share_mnt

字符串

(已弃用)具有 Ansible 用户读写权限的网络共享的本地挂载路径。此选项对于网络共享是必需的。

此选项已弃用,将在更高版本中删除。

share_name

字符串

(已弃用)网络共享或本地路径。

此选项已弃用,将在更高版本中删除。

share_password

别名:share_pwd

字符串

(已弃用)网络共享用户密码。此选项对于 CIFS 网络共享是必需的。

此选项已弃用,将在更高版本中删除。

share_user

字符串

(已弃用)网络共享用户,格式为 ‘user@domain’ 或 ‘domain\user’(如果用户属于域),否则为 ‘user’。此选项对于 CIFS 网络共享是必需的。

此选项已弃用,将在更高版本中删除。

snmp_enable

字符串

是否为 iDRAC 启用或禁用 SNMP 协议。

选项

  • "已启用"

  • "已禁用"

snmp_protocol

字符串

SNMP 协议的类型。

选项

  • "全部"

  • "SNMPv3"

ssl_encryption

字符串

Web 服务器的安全套接字层加密。

选项

  • "自动协商"

  • "128 位或更高"

  • "168 位或更高"

  • "256 位或更高"

timeout

字符串

超时值。

tls_protocol

字符串

Web 服务器的传输层安全性。

选项

  • "TLS 1.0 及更高版本"

  • "TLS 1.1 及更高版本"

  • "仅 TLS 1.2"

trap_format

字符串

iDRAC 的 SNMP 陷阱格式。

选项

  • "SNMPv1"

  • "SNMPv2"

  • "SNMPv3"

validate_certs

布尔值

dellemc.openmanage 5.0.0 中新增

如果为false,则不会验证SSL证书。

仅在使用自签名证书的个人控制站点上配置false。

在收集版本5.0.0之前,validate_certs默认为false。

选项

  • false

  • true ← (默认)

备注

注意

  • 此模块需要idrac_user具有“管理员”权限。

  • 从可以直接访问Dell iDRAC的系统运行此模块。

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

  • 此模块支持check_mode。

示例

---
- name: Configure the iDRAC services attributes
  dellemc.openmanage.dellemc_configure_idrac_services:
    idrac_ip: "192.168.0.1"
    idrac_user: "user_name"
    idrac_password: "user_password"
    ca_path: "/path/to/ca_cert.pem"
    enable_web_server: "Enabled"
    http_port: 80
    https_port: 443
    ssl_encryption: "Auto_Negotiate"
    tls_protocol: "TLS_1_2_Only"
    timeout: "1800"
    snmp_enable: "Enabled"
    snmp_protocol: "SNMPv3"
    community_name: "public"
    alert_port: 162
    discovery_port: 161
    trap_format: "SNMPv3"
    ipmi_lan:
      community_name: "public"

返回值

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

键

描述

error_info

字典

HTTP错误的详细信息。

返回:HTTP错误时

示例:{"error": {"@Message.ExtendedInfo": [{"Message": "由于发生错误,无法处理请求。", "MessageArgs": [], "MessageId": "GEN1234", "RelatedProperties": [], "Resolution": "重试操作。如果问题仍然存在,请联系您的系统管理员。", "Severity": "Critical"}], "code": "Base.1.0.GeneralError", "message": "发生一般错误。请查看ExtendedInfo以获取更多信息。"}

msg

字符串

iDRAC服务属性配置的总体状态。

返回:始终

示例:"已成功配置iDRAC服务设置。"

service_status

字典

iDRAC服务属性配置的详细信息。

返回:成功

示例:{"CompletionTime": "2020-04-02T02:43:28", "Description": "作业实例", "EndTime": null, "Id": "JID_12345123456", "JobState": "已完成", "JobType": "ImportConfiguration", "Message": "已成功导入并应用服务器配置配置文件。", "MessageArgs": [], "MessageId": "SYS053", "Name": "导入配置", "PercentComplete": 100, "StartTime": "TIME_NOW", "Status": "Success", "TargetSettingsURI": null, "retval": true}

状态

  • 此模块将在2024-12-31之后的主要版本中移除。[已弃用]

  • 更多信息请参见已弃用。

作者

  • Felix Stephen (@felixs88)

集合链接

  • 问题跟踪器
  • 主页
  • 代码库(源码)
上一页 下一页

© 版权所有 Ansible 项目贡献者。 上次更新于 2024年12月6日。