Ansible Filters: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 27: Line 27:
<span id='to_yaml'></span>[[Ansible Filter to_yaml|to_yaml]]<br>
<span id='to_yaml'></span>[[Ansible Filter to_yaml|to_yaml]]<br>
<span id='to_nice_yaml'></span>[[Ansible Filter to_nice_yaml|to_nice_yaml]]<br>
<span id='to_nice_yaml'></span>[[Ansible Filter to_nice_yaml|to_nice_yaml]]<br>
|-
| Regular Expressions ||
<span id='regex_replace'></span>[[Ansible Filter regex_replace|regex_replace]]<br>
<span id='regex_findall'></span>[[Ansible Filter regex_findall|regex_findall]]<br>
<span id='regex_search'></span>[[Ansible Filter to_regex_search|regex_search]]<br>
|-
|-
| Miscellaneous ||
| Miscellaneous ||

Revision as of 08:17, 5 July 2021

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

ternary