Solved myself

I used the following filter to achieve what I need:

{{ item | basename }}

Regards
Gerhard
On Tuesday, October 7, 2014 6:33:06 PM UTC+11, Gerhard Hannemann wrote:
>
> Hi
>
> Stumbling across a problem with copying a set of file to a remote server.
> I have a set of files within  a particular role, under the file directory, 
> that a I need to copy across to a set of remote server.
> I gave up on synchronization as it only produce a connection refused 
> error. 
> Trying copy in a loop using with file_glob.  I read the documentation 
> regarding fileglobs in a role
> Questions:
> Is there any way for stripping the leading path?
> Is my only option to copy these file using a local shell command, possibly 
> using rysnc?
> Are the any other suggestions on how this can be neatly done?
>
> Thanks
>
> Regards
> Gerhard
>

-- 
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/4219345e-bb9c-4762-9cac-663977177b83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to