current state + english docs

This commit is contained in:
Ansible Servercow
2026-02-20 13:56:27 +01:00
parent 787f438a97
commit ea7d5112d6
46 changed files with 519 additions and 108 deletions

View File

@@ -1,4 +1,14 @@
- name: Delete snapshot before_major
- name: Get all snapshots
community.proxmox.proxmox_snap_info:
api_host: "{{ proxmox_host }}"
api_user: "{{ proxmox_user }}"
api_token_id: "{{ proxmox_token_id }}"
api_token_secret: "{{ proxmox_token_secret }}"
vmid: "{{ vmid }}"
register: snapshot_info
delegate_to: localhost
- name: Delete all snapshots
community.proxmox.proxmox_snap:
api_host: "{{ proxmox_host }}"
api_user: "{{ proxmox_user }}"
@@ -6,5 +16,7 @@
api_token_secret: "{{ proxmox_token_secret }}"
vmid: "{{ vmid }}"
state: absent
snapname: before_major
snapname: "{{ item.name }}"
loop: "{{ snapshot_info.snapshots }}"
when: item.name != "current"
delegate_to: localhost