fix: proxmox_kvm use target not target_node, remove online param
This commit is contained in:
@@ -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 }}"
|
||||||
|
|
||||||
Reference in New Issue
Block a user