diff --git a/roles/proxmox_upgrade/tasks/drain.yml b/roles/proxmox_upgrade/tasks/drain.yml index 9a70bb4..29572d8 100644 --- a/roles/proxmox_upgrade/tasks/drain.yml +++ b/roles/proxmox_upgrade/tasks/drain.yml @@ -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 }} + \ No newline at end of file