How to fetch a file from remote server without creating additional subfolders

44 views
Skip to first unread message

Samnang Sen

unread,
Oct 8, 2014, 9:58:18 AM10/8/14
to ansible...@googlegroups.com
This works except it creates additional subdirectories within the destination. I just want to copy into my current working directory where I'm running ansible from.


# ansible all -m fetch -a "src=/tmp/pci.{{ inventory_hostname }}.txt dest=pci-{{ inventory_hostname }}.txt"

James Martin

unread,
Oct 8, 2014, 10:59:12 AM10/8/14
to ansible...@googlegroups.com
There is the "flat" option:  http://docs.ansible.com/fetch_module.html

- James

Sam S

unread,
Oct 8, 2014, 11:02:40 AM10/8/14
to ansible...@googlegroups.com

I meant to reply to my original thread and say flat didn't change anything.

--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/OAPP-AHrCio/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/f4b4963c-6a43-43be-95ac-d9d503463eba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

James Martin

unread,
Oct 8, 2014, 11:48:16 AM10/8/14
to ansible...@googlegroups.com
Please file a bug report on github.com for this issue.
Reply all
Reply to author
Forward
0 new messages