ansible / ansible.builtin / v2.7.17 / lookup / template retrieve contents of file after templating with Jinja2 | "added in version" 0.9 of ansible.builtin" Authors: Michael DeHaan <michael.dehaan@gmail.com>ansible.builtin.template (v2.7.17) — lookup
pip
Install with pip install ansible==2.7.17
this is mostly a noop, to be used as a with_list loop when you dont want the content transformed in any way.
- name: show templating results debug: msg="{{ lookup('template', './some_template.j2') }}
_terms: description: list of files to template
_raw: description: file(s) content after templating