netapp_eseries.santricity.na_santricity_auth 模块 – NetApp E 系列设置或更新存储阵列设备或 SANtricity Web Services Proxy 的密码。
注意
此模块是 netapp_eseries.santricity 集合 (版本 1.4.1) 的一部分。
如果您使用的是 ansible
软件包,则可能已安装此集合。它不包含在 ansible-core
中。要检查它是否已安装,请运行 ansible-galaxy collection list
。
要安装它,请使用: ansible-galaxy collection install netapp_eseries.santricity
。
要在 playbook 中使用它,请指定: netapp_eseries.santricity.na_santricity_auth
。
概要
设置或更新存储阵列设备或 SANtricity Web Services Proxy 的密码。
参数
参数 |
注释 |
---|---|
用于对 SANtricity Web Services Proxy 或嵌入式 Web Services API 进行身份验证的密码。 |
|
SANtricity Web Services Proxy 或嵌入式 Web Services API 的 URL。 |
|
用于对 SANtricity Web Services Proxy 或嵌入式 Web Services API 进行身份验证的用户名。 |
|
当前管理员密码。 当更改嵌入式 Web 服务的登录密码时,将使用 api_password 并忽略 current_admin_password。 当更改代理 Web 服务的登录密码时,将使用 api_password 并忽略 current_admin_password。 仅当密码已设置时才需要,如果未设置则将被忽略。 |
|
此选项定义密码的最小长度。 |
|
您想要设置的密码。 不能超过 30 个字符。 |
|
要管理的阵列的 ID。此值对于每个阵列必须唯一。 默认值: |
|
要更新的本地用户帐户密码 对于 E2800 之前的系统,使用 admin 来更改 rw(系统密码)。 对于 E2800 之前的系统,除 admin 之外的所有选项都将被忽略。 选项
|
|
是否应验证 https 证书? 选项
|
备注
注意
尝试更改 SANtricity Web Services Proxy 的密码时,请设置 ssid==”0” 或 ssid==”proxy”。
从代理更改受管存储系统的密码时,将更新 SANtricity Web Services Proxy 存储密码;这仅在先前已联系过存储系统时才为真。
E 系列 Ansible 模块需要 Web Services Proxy (WSP) 实例可用以管理存储系统,或者支持嵌入式 Web Services API 的 E 系列存储系统。
嵌入式 Web Services 目前在 E2800、E5700、EF570 和更新的硬件型号上可用。
netapp_eseries.santricity.netapp_e_storage_system 可用于配置由 WSP 实例管理的系统。
示例
- name: Set the initial password
na_santricity_auth:
ssid: 1
api_url: https://192.168.1.100:8443/devmgr/v2
api_username: admin
api_password: adminpass
validate_certs: true
current_admin_password: currentadminpass
password: newpassword123
user: admin
返回值
常见的返回值已在此处记录,以下是此模块独有的字段
键 |
描述 |
---|---|
成功消息 返回:成功 示例: |