0Pricing
Ansible Academy · Lesson

Filters: default, join & upper

Transform values inside templates.

What a Filter Does

A filter transforms a value on its way to output. You apply one with a pipe, reading left to right like a tiny pipeline. 🧰

{{ name | upper }}

The upper Filter

The upper filter shouts a string into all capitals, while lower does the opposite. Great for normalizing text.

{{ region | upper }}
{{ region | lower }}

All lessons in this course

  1. The template Module & .j2 Files
  2. Variables & Expressions in Jinja2
  3. Loops & if Blocks in Templates
  4. Filters: default, join & upper
← Back to Ansible Academy