Ansible Filters: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 22: Line 22:
<span id='casting'></span>[[Ansible Filter Casting|Casting]]
<span id='casting'></span>[[Ansible Filter Casting|Casting]]
|-
|-
| YAML and JSON Formatting ||
<span id='to_json'></span>[[Ansible Filter to_json|to_json]]<br>
<span id='to_nice_json'></span>[[Ansible Filter to_nice_json|to_nice_json]]<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>
| Miscellaneous ||
| Miscellaneous ||
<span id='ternary'></span>[[Ansible Filter ternary|ternary]]<br>
<span id='ternary'></span>[[Ansible Filter ternary|ternary]]<br>
|-
|-
|}
|}

Revision as of 20:07, 4 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

to_json
to_nice_json
to_yaml
to_nice_yaml

Miscellaneous

ternary