Add documentation for win_copy as become user needing temp dir set (#53211)

pull/20725/head
Bill Bagdon 6 years ago committed by jhawkesworth
parent 0df453bb5d
commit aa1ed59e1b

@ -154,6 +154,17 @@ EXAMPLES = r'''
win_copy:
content: abc123
dest: C:\Temp\foo.txt
- name: Copy a single file as another user
win_copy:
src: NuGet.config
dest: '%AppData%\NuGet\NuGet.config'
vars:
ansible_become_user: user
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%'
'''
RETURN = r'''

Loading…
Cancel
Save