Assemble module not working with remote_src

I haven’t been able to assemble a file on a host from fragments on the Ansible server.
It fails with “msg: Source (/etc/ansible/roles/test/files/fragments/) does not exist”.

If I create and populate that path in the destination host, the file is assembled from those files.

That is, remote_src seems to be ignored.

$ ansible --version
ansible 1.4.3

This email sounds like it’s really “assemble module not working with remote_src=False”.

Looking at the problem, it appears the code was written to not boolean-ify the input arguments, which is definitely a bug. Please file a ticket if you don’t mind.


        remote_src = options.get('remote_src', True)

It appears from looking at things, this may work for you:

- assemble:
     src: blah
     dest: blah
     remote_src: False

Which prevents sending string arguments to the code. The fix is to boolean-ify the string, which we have some utility functions for.

In any case, please make sure there is a github ticket open on this.

Thanks!