ansible/ansible — pull request #1195 by jpmens (2012-10-02 09:55:17+00:00)
Title: Feature: file info on templates accessible to Jinja2 templates

This was requested recently on IRC (and on the mailing-list?), and I find it very useful for tracing where a templated file originates from and when it was last modified.

Consider the following template:

```jinja2

# {{ template_path }} on {{ template_host }}, modified on {{ template_mtime }} by {{ template_uid }}

hello
```

This will now render into something like this:

```
# templ.in on box.example.com, modified on 2012-10-02 11:50:08 by jpm

hello
```