Ansible Filter default

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

The filter provides a default value in case an undefined variable. <syntaxhighlight lang='yaml' - name: Debug

 debug:
   msg: "value of {{ color | default('blue') }}"

</syntaxhighlight>