On Wednesday, December 11, 2013 1:58:36 AM UTC-7, David Karban wrote:
>
> you can reference files with inventory_dir like:  
> copy: src={{ inventory_dir }}/files/my_file
>
> Assuming you always read from top level files and not from role files dir. 
> If you want to read from role or files depending on file existence look at 
> with_first_found: 
> http://www.ansibleworks.com/docs/playbooks_conditionals.html#selecting-files-and-templates-based-on-variables
>

thanks for the pointer. with_first_found is an interesting construct I've 
missed reading docs.  

-- 
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].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to