Ran into this same issue today on the latest devel branch. When fetching a
file with a space in the name and "fail_on_missing: true" I get the error:
"the remote file does not exist". Removing the space from the filename
fixes it. Here's what my task looks like:
- name: fetch result files
fetch:
src: "file_with space"
dest: "/tmp/dest"
flat: yes
fail_on_missing: yes
On Monday, September 29, 2014 8:23:50 PM UTC-6, Paul Yan wrote:
>
> Hi,
>
> I just found fetch does not work very well with filenames has spaces in
> them. so I wrote a test script.
> ######################################################################
> name: report | fetch auditusage report from server
> fetch: src="{{ item }}"
> dest=/tmp/fetched
> with_items:
> - /tmp/test test.txt
> ######################################################################
> basically "test.txt" works, "test test.txt" does not.
>
> and here is the error message, looks like it just failed to create the
> file in local folder, therefore md5sum mismatched. (the whole folder
> structure on remote server was created locally)
> ######################################################################
> failed: [****.****.com] => (item=/tmp/test test.txt) => {"dest":
> "/tmp/fetched/****.****.com/tmp/test test.txt", "failed": true, "file":
> "/tmp/test test.txt", "item": "/tmp/test test.txt", "md5sum": null,
> "remote_md5sum": "6fa871334b2e8715ef897730f8460553"}
> msg: md5 mismatch
> ######################################################################
>
> any workaround ?
> ~
>
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/54a62b84-6d65-4453-9994-d55a5aa38144%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.