On 23. sep. 2017 17:41, tcrass wrote:
Kai,

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

src: bar/baz.txt


sorry, I just *new* I'd screw up formulating my post... In fact, I had
tried this already from within root/roles/mumbo/tasks/main.yaml:

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

Again, ansible compained about not finding the desired file.

Am I missing something, or is ansible incapable of referring to files
living in a subdirectory in a role's "files" folder?

This is a feature that is being used a lot, but in you case the syntax is not correct so I would think you get all sort of error messages.

You need to remove the dash in front of src: and dest:


--
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/3ae53de8-f553-6bda-b8af-8b92fc51b68b%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to