From 0d5fe8fd9475eb6a5f5704dfea72a43195df1356 Mon Sep 17 00:00:00 2001 From: Patrick Chauncey Date: Fri, 28 Apr 2017 15:28:49 -0500 Subject: [PATCH] Add 'uuid' to the attributes returned from the vmware_vm_facts module. (#23773) --- lib/ansible/modules/cloud/vmware/vmware_vm_facts.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/vmware/vmware_vm_facts.py b/lib/ansible/modules/cloud/vmware/vmware_vm_facts.py index 68b6580d6c6..410aa8fab50 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_vm_facts.py +++ b/lib/ansible/modules/cloud/vmware/vmware_vm_facts.py @@ -33,6 +33,7 @@ version_added: 2.0 author: "Joseph Callen (@jcpowermac)" notes: - Tested on vSphere 5.5 + - Tested on vSphere 6.5 requirements: - "python >= 2.6" - PyVmomi @@ -72,7 +73,8 @@ def get_all_virtual_machines(content): summary.config.name: { "guest_fullname": summary.config.guestFullName, "power_state": summary.runtime.powerState, - "ip_address": _ip_address + "ip_address": _ip_address, + "uuid": summary.config.uuid } }