commited current state

This commit is contained in:
Ansible Servercow
2026-04-14 11:38:07 +02:00
parent ea7d5112d6
commit 590d37e4cf
10 changed files with 96 additions and 73 deletions

View File

@@ -8,4 +8,9 @@
state: present
snapname: "{{ snapshot_name | default('before_update') }}"
retention: 2
timeout: 300
delegate_to: localhost
retries: 3
delay: 10
register: snapshot_result
until: snapshot_result is succeeded

View File

@@ -7,6 +7,9 @@
vmid: "{{ vmid }}"
register: snapshot_info
delegate_to: localhost
retries: 3
delay: 10
until: snapshot_info is succeeded
- name: Delete all snapshots
community.proxmox.proxmox_snap:
@@ -19,4 +22,8 @@
snapname: "{{ item.name }}"
loop: "{{ snapshot_info.snapshots }}"
when: item.name != "current"
delegate_to: localhost
delegate_to: localhost
retries: 3
delay: 10
until: item is succeeded
timeout: 300

View File

@@ -9,6 +9,10 @@
config: current
register: vm_info
delegate_to: localhost
retries: 3
delay: 10
until: vm_info is succeeded
timeout: 60
- name: Extract VMID
ansible.builtin.set_fact: