Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
How to copy a file from control machine to the host where task is running
34 views
Skip to first unread message
Deepa Yr
unread,
Mar 3, 2016, 4:34:12 AM
3/3/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
I have few files in control machine ie host1.
My playbook/tasks are running on host2.
I need to copy the files from host1 to host2.
Please let me know how it can be done
Deepa Yr
unread,
Mar 7, 2016, 12:20:10 AM
3/7/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
Any help on this ?
J Hawkesworth
unread,
Mar 7, 2016, 9:59:42 AM
3/7/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
Try the copy module:
http://docs.ansible.com/ansible/copy_module.html
Dan Lang
unread,
Mar 7, 2016, 11:57:11 AM
3/7/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
Besides the copy module, there is the synchronize module for syncing many files in a directory,
http://docs.ansible.com/ansible/synchronize_module.html
. Feel free to review each of the modules that help with managing files,
http://docs.ansible.com/ansible/list_of_files_modules.html
Reply all
Reply to author
Forward
0 new messages