fix: proxmox_kvm use target not target_node, remove online param

This commit is contained in:
2026-03-14 15:51:44 -07:00
parent 7a7405f3f8
commit ad653e3515

View File

@@ -23,8 +23,8 @@
node: "{{ migration_target }}" node: "{{ migration_target }}"
vmid: "{{ item.vmid }}" vmid: "{{ item.vmid }}"
migrate: true migrate: true
target_node: "{{ current_node }}" target: "{{ current_node }}"
online: "{{ true if item.status == 'running' else false }}"
timeout: "{{ vm_shutdown_timeout }}" timeout: "{{ vm_shutdown_timeout }}"
loop: "{{ kvm_guests | default([]) }}" loop: "{{ kvm_guests | default([]) }}"
delegate_to: localhost delegate_to: localhost
@@ -41,5 +41,4 @@
- name: "Restore | Complete" - name: "Restore | Complete"
ansible.builtin.debug: ansible.builtin.debug:
msg: "All guests restored to {{ current_node }}" msg: "All guests restored to {{ current_node }}"