From 3648e6fd2b50340318dc61f538ed6d83738ab1af Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Fri, 7 Apr 2017 19:17:18 +0200 Subject: [PATCH] vmware_guest: Add delegate_to directive to examples (#22932) Without this it is likely not going to do what people expect. --- lib/ansible/modules/cloud/vmware/vmware_guest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest.py b/lib/ansible/modules/cloud/vmware/vmware_guest.py index 0bd8541e32a..290e6ca8176 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest.py @@ -190,6 +190,7 @@ EXAMPLES = ''' mac: 'aa:bb:dd:aa:00:14' template: template_el7 wait_for_ip_address: yes + delegate_to: localhost register: deploy # Clone a VM from Template and customize @@ -222,6 +223,7 @@ EXAMPLES = ''' password: new_vm_password runonce: - powershell.exe -ExecutionPolicy Unrestricted -File C:\Windows\Temp\Enable-WinRM.ps1 -ForceNewSSLCert + delegate_to: localhost # Create a VM template - name: create a VM template @@ -246,6 +248,7 @@ EXAMPLES = ''' num_cpus: 1 scsi: lsilogic wait_for_ip_address: yes + delegate_to: localhost register: deploy # Rename a VM (requires the VM's uuid) @@ -256,6 +259,7 @@ EXAMPLES = ''' uuid: 421e4592-c069-924d-ce20-7e7533fab926 name: new_name state: present + delegate_to: localhost # Remove a VM by uuid - vmware_guest: @@ -264,6 +268,7 @@ EXAMPLES = ''' password: vmware uuid: 421e4592-c069-924d-ce20-7e7533fab926 state: absent + delegate_to: localhost ''' RETURN = """