maxhoesel.proxmox.pbs_datastore module – Manage datastores on PBS
Note
This module is part of the maxhoesel.proxmox collection (version 5.1.1).
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 maxhoesel.proxmox.
You need further requirements to be able to use this module,
see Requirements for details.
To use it in a playbook, specify: maxhoesel.proxmox.pbs_datastore.
New in maxhoesel.proxmox 4.0.0
Synopsis
Create, update and delete datastores on a Proxmox Backup Server
Requirements
The below requirements are needed on the host that executes this module.
proxmoxer >=1.2
requests
Parameters
Parameter |
Comments |
|---|---|
Specify the target host of the Proxmox VE cluster. |
|
Specify the password to authenticate with. You can also use the |
|
Specify the user to authenticate with. |
|
Comment for the datastore (visible in UI) |
|
Run garbace collection job at specified schedule. Must be a calendar event (i.e |
|
Number of daily backups to keep |
|
Number of hourly backups to keep |
|
Number of backups to keep |
|
Number of monthly backups to keep |
|
Number of weekly backups to keep |
|
Number of yearly backups to keep |
|
Name of the datastore |
|
Datastore notification settings |
|
Garbage Collection notification setting Choices:
|
|
Sync Jobs notification setting Choices:
|
|
Verification notification setting Choices:
|
|
User ID to notify |
|
Backing path for the datastore. Required when creating a new datastore |
|
Run prune job at specified schedule. Must be a calendar event (i.e |
|
Whether this datastore should be Choices:
|
|
Validate SSL certificate of the PVE host upon connecting Choices:
|
|
If enabled, all new backups will be verified right after completion Choices:
|
Notes
Note
Check mode is supported.
Examples
- name: Create/Update a datastore
maxhoesel.proxmox.pbs_datastore:
api_user: root@pam
api_password: secret
api_host: helldorado
name: test-datastore
path: /mnt/somedisk/thisdirectory
gc_schedule: daily
prune_schedule: daily
keep_daily: 7
keep_weekly: 4
keep_monthly: 6
notify:
gc: error
verify: error
sync: error
verify_new: yes