feat(vmware): add VMware hypervisor support (node field, connection vars, validation)

This commit is contained in:
2026-03-12 07:43:34 +01:00
parent 13faf33296
commit 79227b4391
9 changed files with 54 additions and 13 deletions

View File

@@ -45,7 +45,7 @@
block:
- name: Query Proxmox for existing VM
community.proxmox.proxmox_vm_info:
node: "{{ hypervisor_cfg.host }}"
node: "{{ hypervisor_cfg.node }}"
vmid: "{{ system_cfg.id }}"
name: "{{ hostname }}"
type: qemu
@@ -66,6 +66,7 @@
- name: Check VM existence in vCenter
when: hypervisor_type == "vmware"
delegate_to: localhost
become: false
module_defaults:
community.vmware.vmware_guest_info:
hostname: "{{ hypervisor_cfg.url }}"
@@ -106,6 +107,7 @@
- name: Check if VM already exists on Xen
when: hypervisor_type == "xen"
delegate_to: localhost
become: false
ansible.builtin.command:
argv:
- xl