Update roles/proxmox_upgrade/tasks/drain.yml
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
- name: "Drain | Get all guests on {{ current_node }}"
|
||||
community.proxmox.proxmox_vm_info:
|
||||
api_host: "{{ api_host }}"
|
||||
api_user: "{{ api_user }}"
|
||||
api_token_id: "{{ api_token_id }}"
|
||||
api_token_secret: "{{ api_token_secret }}"
|
||||
api_port: "{{ api_port }}"
|
||||
@@ -20,6 +21,7 @@
|
||||
- name: "Drain | Get available target nodes"
|
||||
community.proxmox.proxmox_node_info:
|
||||
api_host: "{{ api_host }}"
|
||||
api_user: "{{ api_user }}"
|
||||
api_token_id: "{{ api_token_id }}"
|
||||
api_token_secret: "{{ api_token_secret }}"
|
||||
api_port: "{{ api_port }}"
|
||||
@@ -76,6 +78,7 @@
|
||||
- name: "Drain | KVM | Live migrate (sequential)"
|
||||
community.proxmox.proxmox_kvm:
|
||||
api_host: "{{ api_host }}"
|
||||
api_user: "{{ api_user }}"
|
||||
api_token_id: "{{ api_token_id }}"
|
||||
api_token_secret: "{{ api_token_secret }}"
|
||||
api_port: "{{ api_port }}"
|
||||
@@ -92,6 +95,7 @@
|
||||
- name: "Drain | KVM | Bulk migrate (fire and wait)"
|
||||
community.proxmox.proxmox_kvm:
|
||||
api_host: "{{ api_host }}"
|
||||
api_user: "{{ api_user }}"
|
||||
api_token_id: "{{ api_token_id }}"
|
||||
api_token_secret: "{{ api_token_secret }}"
|
||||
api_port: "{{ api_port }}"
|
||||
@@ -165,3 +169,4 @@
|
||||
Node {{ current_node }} drained —
|
||||
{{ kvm_guests | length }} KVM + {{ lxc_guests | length }} LXC guests
|
||||
migrated to {{ migration_target }}
|
||||
|
||||
Reference in New Issue
Block a user