From 071903b8683e2cc30fd9e3a82600259a8f8d7e86 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Tue, 18 Apr 2017 13:53:55 +0100 Subject: [PATCH] vmware_guest_snapshots: Add delegate_to directive to examples (#22933) Without it it is not doing what most people would expect. --- lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py b/lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py index ac27891ff2..2834a43b02 100644 --- a/lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py +++ b/lib/ansible/modules/cloud/vmware/vmware_guest_snapshot.py @@ -84,6 +84,7 @@ EXAMPLES = ''' state: present snapshot_name: snap1 description: snap1_description + delegate_to: localhost - name: Remove a snapshot vmware_guest_snapshot: @@ -93,6 +94,7 @@ EXAMPLES = ''' name: dummy_vm state: remove snapshot_name: snap1 + delegate_to: localhost - name: Revert to a snapshot vmware_guest_snapshot: @@ -102,6 +104,7 @@ EXAMPLES = ''' name: dummy_vm state: revert snapshot_name: snap1 + delegate_to: localhost - name: Remove all snapshots of a VM vmware_guest_snapshot: @@ -110,6 +113,7 @@ EXAMPLES = ''' password: vmware name: dummy_vm state: remove_all + delegate_to: localhost ''' RETURN = """