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!
On Fri, Jan 3, 2014 at 9:26 PM, Jorge E. Gómez <[email protected]>wrote:
> 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
>
> ---
> # /etc/ansible/test.yml
> - hosts: test
> sudo: yes
> roles:
> - test
>
> ---
> # /etc/ansible/roles/test/tasks/main.yml
> - name: Assemble files from Ansible server on remote host
> assemble: >
> dest=/tmp/assembled.file
> remote_src=False
> src=/etc/ansible/roles/test/files/fragments/
>
> # /etc/ansible/roles/test/files/fragments/one
> First Fragment
>
> # /etc/ansible/roles/test/files/fragments/two
> Second Fragment
>
>
> Changing 'src' to 'roles/test/files/fragments/', 'files/fragments/', or
> removing the trailing slash, have no effect.
>
> Any ideas?
>
> --
> 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].
> For more options, visit https://groups.google.com/groups/opt_out.
>
--
Michael DeHaan <[email protected]>
CTO, AnsibleWorks, Inc.
http://www.ansibleworks.com/
--
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].
For more options, visit https://groups.google.com/groups/opt_out.