added new playbooks and tasks

This commit is contained in:
Ansible Servercow
2025-11-19 11:23:50 +01:00
parent 7c9a2109d5
commit 787f438a97
8 changed files with 177 additions and 12 deletions

View File

@@ -0,0 +1,11 @@
- name: Create new snapshot and keep only the 2 newest snapshots
community.proxmox.proxmox_snap:
api_host: "{{ proxmox_host }}"
api_user: "{{ proxmox_user }}"
api_token_id: "{{ proxmox_token_id }}"
api_token_secret: "{{ proxmox_token_secret }}"
vmid: "{{ vmid }}"
state: present
snapname: "{{ snapshot_name | default('before_update') }}"
retention: 2
delegate_to: localhost