ibm.storage_virtualize.ibm_svc_manage_user 模块 – 此模块管理 IBM 存储虚拟化系列系统上的用户
注意
此模块是 ibm.storage_virtualize 集合 (版本 2.5.0) 的一部分。
如果您使用的是 ansible
包,则可能已安装此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用:ansible-galaxy collection install ibm.storage_virtualize
。
要在剧本中使用它,请指定:ibm.storage_virtualize.ibm_svc_manage_user
。
ibm.storage_virtualize 1.7.0 中的新增功能
概要
管理“mkuser”、“rmuser”和“chuser”命令的 Ansible 接口。
参数
参数 |
注释 |
---|---|
指定用户使用远程身份验证服务还是系统身份验证方法对系统进行身份验证。 仅支持的值为“usergrp”。 当state=present时,需要创建用户。 选项
|
|
存储虚拟化系统的名称或管理 IP。 |
|
存储虚拟化系统的域名。 当参数clustername使用主机名时有效。 |
|
指定在下次登录时必须更改密码。 应用于state=present,修改用户。 选项
|
|
指定包含安全外壳 (SSH) 公钥的文件的名称。 应用于state=present。 |
|
指定无限期锁定帐户。除非使用参数unlock再次解锁,否则用户无法登录。 应用于state=present,修改用户。 参数lock和unlock是互斥的。 选项
|
|
调试日志文件的路径。 |
|
指定唯一的用户名。 |
|
指定要删除用户的 SSH 密钥。 应用于state=present,修改用户。 选项
|
|
指定要删除用户的密码。 应用于state=present,修改用户。 选项
|
|
存储虚拟化系统的 REST API 密码。 如果不使用token对用户进行身份验证,则需要参数username和password。 |
|
创建或更新 ( 选项
|
|
用于在存储虚拟化系统上验证用户的身份验证令牌。 要生成令牌,请使用 ibm_svc_auth 模块。 |
|
指定解锁帐户,以便可以再次登录。 应用于state=present,修改用户。 参数lock和unlock是互斥的。 选项
|
|
指定与用户关联的密码。 应用于state=present。 |
|
指定要将本地用户关联到的用户组的名称。 应用于state=present和auth_type=usergrp。 |
|
存储虚拟化系统的 REST API 用户名。 如果不使用token对用户进行身份验证,则需要参数username和password。 |
|
验证证书。 选项
|
备注
注意
此模块支持
check_mode
。
示例
- name: Create a user
ibm.storage_virtualize.ibm_svc_manage_user:
clustername: "{{clustername}}"
domain: "{{domain}}"
username: "{{username}}"
password: "{{password}}"
log_path: /tmp/playbook.debug
state: present
name: user-name
user_password: user-password
auth_type: usergrp
usergroup: usergroup-name
- name: Remove a user
ibm.storage_virtualize.ibm_svc_manage_user:
clustername: "{{clustername}}"
domain: "{{domain}}"
username: "{{username}}"
password: "{{password}}"
log_path: /tmp/playbook.debug
state: absent
name: user-name