community.general.proxmox_snap – Snapshot management of instances in Proxmox VE cluster
This plugin is part of the community.general collection (version 4.2.0).
You might already have this collection installed if you are using the
It is not included in
To check whether it is installed, run
ansible-galaxy collection list.
To install it, use:
ansible-galaxy collection install community.general.
To use it in a playbook, specify:
New in version 2.0.0: of community.general
Allows you to create/delete snapshots from instances in Proxmox VE cluster.
Supports both KVM and LXC, OpenVZ has not been tested, as it is no longer supported on Proxmox VE.
The below requirements are needed on the host that executes this module.
python >= 2.7
Requires proxmoxer and requests modules on host. These modules can be installed with pip.
- name: Create new container snapshot community.general.proxmox_snap: api_user: [email protected] api_password: 1q2w3e api_host: node1 vmid: 100 state: present snapname: pre-updates - name: Remove container snapshot community.general.proxmox_snap: api_user: [email protected] api_password: 1q2w3e api_host: node1 vmid: 100 state: absent snapname: pre-updates