ansible.builtin.template (v2.4.3.0-1) — lookup

retrieve contents of file after templating with Jinja2

| "added in version" 0.9 of ansible.builtin"

Authors: Michael DeHaan <michael.dehaan@gmail.com>

Install Ansible via pip

Install with pip install ansible==2.4.3.0.post1

Description

this is mostly a noop, to be used as a with_list loop when you dont want the content transformed in any way.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: show templating results
  debug: msg="{{ lookup('template', './some_template.j2') }}

Inputs

    
_terms:
    description: list of files to template

Outputs

_raw:
  description: file(s) content after templating