From acc01f1109d58298a7e81188d76b10d3ea93f92a Mon Sep 17 00:00:00 2001 From: ShachafGoldstein Date: Mon, 17 Jun 2019 21:55:29 +0300 Subject: [PATCH] Win_copy: doc fix when using become (#57690) * win_copy: doc update * Community review --- lib/ansible/modules/windows/win_copy.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/ansible/modules/windows/win_copy.py b/lib/ansible/modules/windows/win_copy.py index 70f8f161935..a55f4c65b7e 100644 --- a/lib/ansible/modules/windows/win_copy.py +++ b/lib/ansible/modules/windows/win_copy.py @@ -91,8 +91,8 @@ options: end with "/", the directory itself with all contents is copied. - If path is a file and dest ends with "\", the file is copied to the folder with the same filename. + - Required unless using C(content). type: path - required: yes notes: - Currently win_copy does not support copying symbolic links from both local to remote and remote to remote. @@ -164,7 +164,8 @@ EXAMPLES = r''' ansible_become_password: pass # The tmp dir must be set when using win_copy as another user # This ensures the become user will have permissions for the operation - ansible_remote_tmp: '%temp%' + # Make sure to specify a folder both the ansible_user and the become_user have access to (i.e not %TEMP% which is user specific and requires Admin) + ansible_remote_tmp: 'c:\tmp' ''' RETURN = r'''