Transforming variables with Jinja2 filters
Jinja2 filters let you transform the value of a variable within a template expression. For example, thecapitalizefilter capitalizes any value passed to it; theto_yamlandto_jsonfilters change the format of your variable values. Jinja2 includes manybuilt-in filters, and Ansible supplies many more filters. To find more examples of filters, seeUsing filters to manipulate data.