mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
VMware: Add cluster fact in vmware_vm_facts (#44292)
This fix adds an additional fact about cluster in VM facts. Fixes: #44101 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
@@ -50,5 +50,13 @@
|
||||
assert:
|
||||
that:
|
||||
- "{{ item | basename in vm_facts_0001['virtual_machines'].keys()}}"
|
||||
- "vm_facts_0001['virtual_machines'][item | basename]['cluster'] is defined"
|
||||
- "vm_facts_0001['virtual_machines'][item | basename]['esxi_hostname'] is defined"
|
||||
- "vm_facts_0001['virtual_machines'][item | basename]['guest_fullname'] is defined"
|
||||
- "vm_facts_0001['virtual_machines'][item | basename]['ip_address'] is defined"
|
||||
- "vm_facts_0001['virtual_machines'][item | basename]['mac_address'] is defined"
|
||||
- "vm_facts_0001['virtual_machines'][item | basename]['power_state'] is defined"
|
||||
- "vm_facts_0001['virtual_machines'][item | basename]['uuid'] is defined"
|
||||
- "vm_facts_0001['virtual_machines'][item | basename]['vm_network'] is defined"
|
||||
with_items:
|
||||
- "{{ host_info_result['json'] }}"
|
||||
|
||||
Reference in New Issue
Block a user