maxhoesel.proxmox.pbs_client role – Installs and configures the Proxmox backup client on a supported system.
Note
This role 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.
To use it in a playbook, specify: maxhoesel.proxmox.pbs_client.
Entry point main – Installs and configures the Proxmox backup client on a supported system.
Synopsis
The client is installed and configured for usage by the root user. Additionally, a backup job can be configured and scheduled.
Requirements: - Ubuntu 20.04 or later - Debian 11 or later - Root access via `become: yes` or equivalent
NOTE ON ENABLING ENCRYPTION: Before you enable encryption, make sure to familiarize yourself with the way PBS handles encryption keys and passwords (see here). All encryption modes require you to somehow save the encryption keyfile/private key to a separate machine. The backup will become irrecoverable if you do not have a copy of the encryption key!
Parameters
Parameter |
Comments |
|---|---|
List of archive specifications as passed to the `backup` subcommand. An archive specification has the format `name.type:/path` Common types are `.pxar` and `.img` Example: |
|
Unique ID used to identify this backup group (see here) If undefined, the PBS default (hostname) is used |
|
Whether to configure a backup task If false, the PBS client will be installed with no further configuration done Choices:
|
|
Select the type of client-side encryption that should be used to encrypt backups on the remote server Note that this does not affect the backup transport security - PBS always uses TLS connections for transferring your backup. When set to none, no encryption is used When set to keyfile, an AES-256 encryption key is generated and saved on the client. This key is used to encrypt every backup archive. Please make sure to backup this keyfile to an external location. You will not be able to restore from backup without this key!. The key is stored without password protection to enable automatic backups. When set to rsa, a keyfile is generated just as above, but a RSA public key is used to encrypt the backup keyfile, which is then appended to every backup. This allows you to restore from a backup with the private key and without needing to know the AES keyfile. This is especially useful if you want to reuse an existing RSA keypair. Please make sure to keep a copy of the private key corresponding to the public key around. You will not be able to restore from backup without this key! Choices:
|
|
Public RSA key to use for encrypting the backup key Must be in the string representation generated by PBS (C—–BEGIN PUBLIC KEY—–)…) |
|
Fingerprint of the backup servers certificate Used to verify self-signed certificates, not needed if your backup server has a valid CA certificate that is trusted by the client. |
|
Include the following mountpoints into the backup Must be a list of paths or If set to a list, items must be paths as passed to the If set to Default: |
|
List of systemd units to be started if the backup task fails Example: Default: |
|
Password or Token secret to authenticate with when talking to the backup server |
|
Repository to backup to Format: Example: |
|
Time at which to run the backup job, specified as a systemd time expression Examples: Default: |
|
Name of the systemd timer and unitfile that will be used to run the backup job Default: |
|
Whether the backup task should be started immediately if the task did not run the previous time, for example because the host was shut down Choices:
|
|
Random delay in seconds before the backup actually starts. Useful to prevent bursts of backup traffic from multiple hosts. Default: |
|
Whether the backup should be skipped if no AC power is present. This should work on all modern systems, but it is set to `false` by default just to be sure. Choices:
|
|
When to true, this role will not attempt to install the backup client and instead just assume that it is already present. This is useful if you already installed the backup client manually Choices:
|