Fix missing code block in playbook variables doc
A code sample was not being rendered as a code block. This adds the preceding '::' reStructuredText markup.
This commit is contained in:
parent
375edbd087
commit
49f3a794b1
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ The variable value will be used as is, but the template evaluation will raise an
|
||||||
Defaulting Undefined Variables
|
Defaulting Undefined Variables
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
Jinja2 provides a useful 'default' filter, that is often a better approach to failing if a variable is not defined.
|
Jinja2 provides a useful 'default' filter, that is often a better approach to failing if a variable is not defined::
|
||||||
|
|
||||||
{{ some_variable | default(5) }}
|
{{ some_variable | default(5) }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue