copy file from remote windows server to local machine?
2,057 views
Skip to first unread message
Slim Slam
unread,
Feb 17, 2016, 11:16:34 PM2/17/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
In Ansible 2.0, the win_copy module will move a local file to a remote windows machine.
Is there an Ansible way to fetch a remote file on a windows server and move it to a local machine?
J
Gerald Spencer
unread,
Feb 18, 2016, 12:35:14 AM2/18/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
Line 85 in the win_copy module is the chunk that actually copies the file from the local to remote. Perhaps try executing a raw command to test it out? Something along the lines of: