On Wednesday, November 20, 2013 7:11:24 PM UTC, Michael DeHaan wrote:
>
> {{ path | basename }}
>
> http://ansibleworks.com/docs/playbooks_variables.html#jinja2-filters
>
>
Ah, thank you! Somehow I managed to miss all mention of filters while 
scanning the docs earlier.

Just for completeness, I realised that in the particular case of the 'copy' 
module, I can just write

  copy: dest=/etc/myapp src={{ item }}

and then I don't actually need the basename in the first place.
and the problem goes away

-- 
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