There's a rather limited set of variables sent to what is provided to the
ansible_managed as it's not evaluated by the template engine, but some
basic string.format operations.

Jinja2 *does* have a basename filter, though this line is not evaluated by
Jinja2, so changing this would require the code to itself change, and also
some code to keep compatibility.

As such, this is unlikely to change at this time.




On Sun, Aug 31, 2014 at 10:05 AM, <[email protected]> wrote:

> Friends,
>
> {file} in ansible_managed uses gets replaced with the filename and its
> full path. Is there another variable to get the filename only, omitting the
> full path?
>
> Thanks!
> Stephan
>
> --
> 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/ee3d03b6-bf30-4697-a410-a8f08fa9d999%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/ee3d03b6-bf30-4697-a410-a8f08fa9d999%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CA%2BnsWgyC5Nhp14YwHoavAUPTHm0gqBYnow4wTyf7rX5TOuGdEQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to