template – retrieve contents of file after templating with Jinja2¶
Synopsis¶
- this is mostly a noop, to be used as a with_list loop when you dont want the content transformed in any way.
Examples¶
- name: show templating results
debug: msg="{{ lookup('template', './some_template.j2') }}
Return Values¶
Common return values are documented here, the following are the fields unique to this lookup:
Key | Returned | Description |
---|---|---|
_raw
-
|
file(s) content after templating
|
Status¶
Authors¶
- Michael DeHaan <michael.dehaan@gmail.com>
Hint
If you notice any issues in this documentation you can edit this document to improve it.