mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* adds support for null values to the ternary filter This change adds a third optional argument to the ternary filter to handle a null value. If the third option is specified null and false are treated differently. For instance, take the following example: {{ enabled | ternary('no shutdown', 'shutdown') }} If enabled == True, then 'no shutdown' is used. If enabled in (False, None), then 'shutdown' is used. With this change the following is possible: {{ enabled | ternary('no shutdown', 'shutdown', omit) }} If enabled == True, then 'no shutdown' If enabled == False, then 'shutdown' If enabled == None, then omit * update documentation with example of filter * update filter documentation example per comments * fix logic error in user_guide example |
||
---|---|---|
.. | ||
shared_snippets | ||
become.rst | ||
command_line_tools.rst | ||
index.rst | ||
intro.rst | ||
intro_adhoc.rst | ||
intro_bsd.rst | ||
intro_dynamic_inventory.rst | ||
intro_getting_started.rst | ||
intro_inventory.rst | ||
intro_patterns.rst | ||
intro_windows.rst | ||
module_defaults_config.rst | ||
modules.rst | ||
modules_intro.rst | ||
modules_support.rst | ||
playbook_pathing.rst | ||
playbooks.rst | ||
playbooks_advanced_syntax.rst | ||
playbooks_async.rst | ||
playbooks_best_practices.rst | ||
playbooks_blocks.rst | ||
playbooks_checkmode.rst | ||
playbooks_conditionals.rst | ||
playbooks_debugger.rst | ||
playbooks_delegation.rst | ||
playbooks_environment.rst | ||
playbooks_error_handling.rst | ||
playbooks_filters.rst | ||
playbooks_filters_ipaddr.rst | ||
playbooks_intro.rst | ||
playbooks_lookups.rst | ||
playbooks_loops.rst | ||
playbooks_module_defaults.rst | ||
playbooks_prompts.rst | ||
playbooks_python_version.rst | ||
playbooks_reuse.rst | ||
playbooks_reuse_includes.rst | ||
playbooks_reuse_roles.rst | ||
playbooks_roles.rst | ||
playbooks_special_topics.rst | ||
playbooks_startnstep.rst | ||
playbooks_strategies.rst | ||
playbooks_tags.rst | ||
playbooks_templating.rst | ||
playbooks_tests.rst | ||
playbooks_variables.rst | ||
playbooks_vault.rst | ||
plugin_filtering_config.rst | ||
quickstart.rst | ||
vault.rst | ||
windows.rst | ||
windows_dsc.rst | ||
windows_faq.rst | ||
windows_setup.rst | ||
windows_usage.rst | ||
windows_winrm.rst |