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.