community.hrobot.storagebox_snapshot_plan module – Modify a storage box’s snapshot plans
Note
This module is part of the community.hrobot collection (version 2.2.0).
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_snapshot_plan
.
New in community.hrobot 2.1.0
Synopsis
Enable, modify, and disable the snapshot plans of a storage box.
Parameters
Parameter |
Comments |
---|---|
The password for the Robot web-service user. |
|
The username for the Robot web-service user. |
|
The storage plan configurations. Note that right now there must be exactly one element. All date and time parameters are in UTC. |
|
The day of month of execution of the plan. If set to |
|
The day of the week of execution of the plan. If set to |
|
The hour of execution of the plan. Required if |
|
The maximum number of automatic snapshots of this plan. Required if |
|
The minute of execution of the plan. Required if |
|
The month of execution of the plan. If set to |
|
The status of the snapshot plan. Choices:
|
|
Timeout (in seconds) for waiting when rate limit exceeded errors are returned. Set to Set to a negative value like Default: |
|
The ID of the storage box to modify. |
Attributes
Attribute |
Support |
Description |
---|---|---|
Action group: 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_snapshot_plan:
hetzner_user: foo
hetzner_password: bar
storagebox_id: 123
plans:
- status: enabled
minute: 5
hour: 12
day_of_week: 2 # Tuesday
max_snapshots: 2
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
---|---|
The storage box’s snapshot plan configurations. All date and time parameters are in UTC. Returned: success |
|
The day of month of execution of the plan. If set to Returned: success |
|
The day of the week of execution of the plan. If set to Returned: success Sample: |
|
The hour of execution of the plan. Returned: success Sample: |
|
The maximum number of automatic snapshots of this plan. Returned: success Sample: |
|
The minute of execution of the plan. Returned: success Sample: |
|
The month of execution of the plan. If set to Returned: success |
|
The status of the snapshot plan. Returned: success Can only return:
Sample: |