1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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

This commit is contained in:
Bill Bagdon 2019-03-03 06:59:43 -05:00 committed by jhawkesworth
parent 0df453bb5d
commit aa1ed59e1b

View file

@ -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'''