community.hrobot.storagebox module – Modify a storage box’s basic configuration
Note
This module is part of the community.hrobot collection (version 2.5.2).
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.
New in community.hrobot 2.1.0
Synopsis
- Modify a storage box’s basic configuration. 
Parameters
| Parameter | Comments | 
|---|---|
| Whether the storage box is externally reachable. Choices: 
 | |
| The password for the Robot web-service user. If  | |
| The API token for the Robot web-service user. One of  | |
| The username for the Robot web-service user. One of  If  | |
| The ID of the storage box to modify. | |
| The name of the storage box. | |
| Timeout (in seconds) for waiting when rate limit exceeded errors are returned. Set to  Set to a negative value like  Default:  | |
| Whether the storage box is accessible through SAMBA. Choices: 
 | |
| Whether the storage box is accessible through SSH. Choices: 
 | |
| Whether the storage box is accessible through WebDAV. Choices: 
 | |
| Whether the ZFS directory is visible. Choices: 
 | 
Attributes
| Attribute | Support | Description | 
|---|---|---|
| Action groups: community.hrobot.api, community.hrobot.robot | Use  | |
| Support: full | Can run in  | |
| Support: full | Will return details on what has changed (or possibly needs changing in  | |
| Support: full | 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: Setup storagebox
  community.hrobot.storagebox:
    hetzner_user: foo
    hetzner_password: bar
    name: "My storage box"
    ssh: true
    samba: false
    webdav: false
    external_reachability: false
    zfs: false
Return Values
Common return values are documented here, the following are the fields unique to this module:
| Key | Description | 
|---|---|
| Whether the storage box is reachable externally. Returned: success Sample:  | |
| The storage box’s name. Returned: success Sample:  | |
| Whether SAMBA is active. Returned: success Sample:  | |
| Whether SSH is active. Returned: success Sample:  | |
| Whether WebDAV is active. Returned: success Sample:  | |
| Shows whether the ZFS directory is visible. Returned: success Sample:  | 
