dellemc.openmanage.idrac_user_info 模块 – 获取iDRAC上所有用户或特定用户的详细信息。
注意
此模块是 dellemc.openmanage 集合 (版本 9.9.0) 的一部分。
如果您使用的是 ansible 软件包,则可能已安装此集合。它不包含在 ansible-core 中。要检查是否已安装它,请运行 ansible-galaxy collection list。
要安装它,请使用: ansible-galaxy collection install dellemc.openmanage。您需要其他要求才能使用此模块,有关详细信息,请参见 要求。
要在playbook中使用它,请指定: dellemc.openmanage.idrac_user_info。
dellemc.openmanage 7.0.0 中的新增功能
概要
- 此模块检索iDRAC上所有用户的列表和基本信息,或特定用户的详细信息 
要求
执行此模块的主机需要以下要求。
- python >= 3.9.6 
参数
| 参数 | 注释 | 
|---|---|
| 包含用于验证的CA证书的隐私增强邮件 (PEM) 文件。 | |
| iDRAC IP地址。 | |
| iDRAC 用户密码。 如果未提供密码,则使用环境变量  示例:export IDRAC_PASSWORD=password | |
| iDRAC端口。 默认值:  | |
| iDRAC用户名。 如果未提供用户名,则使用环境变量  示例:export IDRAC_USERNAME=username | |
| 以秒为单位的套接字级别超时。 默认值:  | |
| 支持从1到16的顺序用户ID号。 user_id 与 username 互斥 | |
| 在iDRAC本地用户中创建的帐户的用户名。 username 与 user_id 互斥 | |
| 如果为  仅在使用自签名证书的个人控制站点上配置  在集合版本  选项 
 | |
| 身份验证令牌。 如果未提供x_auth_token,则使用环境变量  示例:export IDRAC_X_AUTH_TOKEN=x_auth_token | 
注释
注意
- 在可以直接访问Dell iDRAC的系统上运行此模块。 
- 此模块支持 - check_mode。
示例
---
- name: Retrieve basic details of all user accounts.
  dellemc.openmanage.idrac_user_info:
    idrac_ip: 198.162.0.1
    idrac_user: idrac_user
    idrac_password: idrac_password
    ca_path: "/path/to/ca_cert.pem"
- name: Retrieve user details using user_id
  dellemc.openmanage.idrac_user_info:
    idrac_ip: 198.162.0.1
    idrac_user: idrac_user
    idrac_password: idrac_password
    ca_path: "/path/to/ca_cert.pem"
    user_id: 1
- name: Retrieve user details using username
  dellemc.openmanage.idrac_user_info:
    idrac_ip: 198.162.0.1
    idrac_user: idrac_user
    idrac_password: idrac_password
    ca_path: "/path/to/ca_cert.pem"
    username: user_name
返回值
公共返回值已在 此处 记录,以下是此模块特有的字段
| 键 | 描述 | 
|---|---|
| HTTP错误的详细信息。 返回: HTTP错误时 示例:  | |
| 用户信息检索的状态。 返回: 始终 示例:  | |
| 关于用户的信息。 返回: 成功 示例:  | 
