Ansible Filters: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 34: Line 34:
|-
|-
| Miscellaneous ||
| Miscellaneous ||
<span id='select'></span>[[Ansible Filter select|select]]<br>
<span id='ternary'></span>[[Ansible Filter ternary|ternary]]<br>
<span id='ternary'></span>[[Ansible Filter ternary|ternary]]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br>
 
|-
| Jinja Filters ||
<span id='select'></span>[[Jinja2#upperr|upper]]<br>
<span id='select'></span>[[Jinja2#lower|lower]]<br>
|-
|-
|}
|}

Latest revision as of 21:29, 23 August 2023

External

Internal

Overview

Ansible file content can be manipulated with filters.

Ansible Filters

Category Filters
Variable-related filters

default
mandatory

Data type management filters

type_debug
dict2items
items2dict
Casting

YAML and JSON Formatting

json_query
to_json
to_nice_json
to_yaml
to_nice_yaml

Regular Expressions

regex_replace
regex_findall
regex_search

Miscellaneous

select
ternary
                                                

Jinja Filters

upper
lower