From a075c56dbf6f9b476a60278254253f4269dad031 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Sat, 8 Apr 2017 08:10:35 +0200 Subject: [PATCH] vmware_guest_facts: Add delegate_to directive to example (#22931) Without it, this is not going to do what most people expect. This fixes #22840 --- .../modules/cloud/vmware/vmware_guest_facts.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest_facts.py b/lib/ansible/modules/cloud/vmware/vmware_guest_facts.py index 5ad195faa1c..ca264389de2 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest_facts.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest_facts.py @@ -63,15 +63,15 @@ extends_documentation_fragment: vmware.documentation ''' EXAMPLES = ''' -# Gather facts - - name: gather the VM facts - vmware_guest_facts: - hostname: 192.168.1.209 - username: administrator@vsphere.local - password: vmware - validate_certs: no - uuid: 421e4592-c069-924d-ce20-7e7533fab926 - register: facts +- name: Gather VM facts + vmware_guest_facts: + hostname: 192.168.1.209 + username: administrator@vsphere.local + password: vmware + validate_certs: no + uuid: 421e4592-c069-924d-ce20-7e7533fab926 + delegate_to: localhost + register: facts ''' RETURN = """