From 1cdde216ec1ede70cf432fa107b272e9a3145aee Mon Sep 17 00:00:00 2001 From: aperigault Date: Sun, 12 Feb 2017 04:50:59 +0100 Subject: [PATCH] vmware_guest: Extend facts with vmware tools informations (#20860) --- lib/ansible/module_utils/vmware.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/module_utils/vmware.py b/lib/ansible/module_utils/vmware.py index 37b5982117..5bec0600ba 100644 --- a/lib/ansible/module_utils/vmware.py +++ b/lib/ansible/module_utils/vmware.py @@ -198,6 +198,8 @@ def gather_vm_facts(content, vm): 'hw_processor_count': vm.config.hardware.numCPU, 'hw_memtotal_mb': vm.config.hardware.memoryMB, 'hw_interfaces': [], + 'guest_tools_status': vm.guest.toolsRunningStatus, + 'guest_tools_version': vm.guest.toolsVersion, 'ipv4': None, 'ipv6': None, 'annotation': vm.config.annotation,