You've already forked role_proxmox
fix: Wait for the instances to return to the current host
This commit is contained in:
@@ -17,6 +17,18 @@
|
||||
- name: Upgrade tasks
|
||||
when: apt_upgradable.stdout_lines | length > 1
|
||||
block:
|
||||
- name: List instance on the current node
|
||||
community.proxmox.proxmox_vm_info:
|
||||
api_host: "{{ proxmox_api_host }}"
|
||||
api_token_id: "{{ proxmox_api_token_id }}"
|
||||
api_token_secret: "{{ proxmox_api_token_secret }}"
|
||||
api_user: "{{ proxmox_api_user }}"
|
||||
node: "{{ inventory_hostname_short }}"
|
||||
type: all
|
||||
validate_certs: "{{ proxmox_api_validate_certs }}"
|
||||
become: true
|
||||
register: proxmox_node_instances
|
||||
|
||||
- name: Enable maintenance node
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
|
||||
Reference in New Issue
Block a user