community.hrobot.storagebox_set_password module – (Re)set the password for a storage box
Note
This module is part of the community.hrobot collection (version 2.1.0).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.hrobot
.
To use it in a playbook, specify: community.hrobot.storagebox_set_password
.
New in community.hrobot 2.1.0
Synopsis
(Re)set the password for a storage box.
Parameters
Parameter |
Comments |
---|---|
The password for the Robot web-service user. |
|
The username for the Robot web-service user. |
|
The ID of the storage box to modify. |
|
The new password for the storage box. If not provided, a random password will be created by the Robot API and returned as |
|
Timeout (in seconds) for waiting when rate limit exceeded errors are returned. Set to Set to a negative value like Default: |
Attributes
Attribute |
Support |
Description |
---|---|---|
Action group: community.hrobot.robot |
Use |
|
Support: none |
Can run in |
|
Support: none |
Will return details on what has changed (or possibly needs changing in |
|
Support: none This module performs an action on every invocation. |
When run twice in a row outside check mode, with the same arguments, the second invocation indicates no change. This assumes that the system controlled/queried by the module has not changed in a relevant way. |
Examples
- name: Set the password
community.hrobot.storagebox_set_password:
id: 123
password: "newpassword"
- name: Set a random password
community.hrobot.storagebox_set_password:
id: 123
register: result
- name: Output new password
ansible.builtin.debug:
msg: "New password: {{ result.password }}"
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The new password for the storage box. Note that if the password has been provided as Returned: success Sample: |