On 23. sep. 2017 16:23, tcrass wrote:
When, however, I include the "mumbo" role in root/main.yaml and I try to
refer to root/roles/mumbo/files/bar/baz.txt from within the
root/roles/mumbo/tasks/main.yaml file in a similar fashion, i.e. like

   - name: copy bar/baz.txt to mumbo host
     copy:
       - src: files/bar/baz.txt
       - dest: /some/other/path/baz.txt

or

   - name: copy bar/baz.txt to mumbo host
     copy:
       - src: ../files/bar/baz.txt
       - dest: /some/other/path/baz.txt

Roles in Ansible has the concept of files, so copy will automatically be looking in files, so just use

src: bar/baz.txt


--
Kai Stian Olstad

--
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/7c32e89d-c3ce-d806-b5e6-2c14c493b36f%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to