Question

In YAML, the following syntax is used if you want to have multi line values and preseve the newlines (and trailing spaces at end of lines)

include_newlines: [...]
exactly as you see
will appear these three
lines of poetry

include_newlines: |
exactly as you see
will appear these three
lines of poetry

^^ note the "|" syntax, such that the value of include_newlines is exactly:

exactly as you see
will appear these three
lines of poetry

Question

In YAML, the following syntax is used if you want to have multi line values and preseve the newlines (and trailing spaces at end of lines)

include_newlines: [...]
exactly as you see
will appear these three
lines of poetry

?

Question

In YAML, the following syntax is used if you want to have multi line values and preseve the newlines (and trailing spaces at end of lines)

include_newlines: [...]
exactly as you see
will appear these three
lines of poetry

include_newlines: |
exactly as you see
will appear these three
lines of poetry

^^ note the "|" syntax, such that the value of include_newlines is exactly:

exactly as you see
will appear these three
lines of poetry

If you want to change selection, open document below and click on "Move attachment"

YAML Syntax — Ansible Documentation
lock Scalar” > will fold newlines to spaces; it’s used to make what would otherwise be a very long line easier to read and edit. In either case the indentation will be ignored. Examples are: <span>include_newlines: | exactly as you see will appear these three lines of poetry fold_newlines: > this is really a single line of text despite appearances While in the above > example all newlines are folded into spaces, there are two ways to enforce a newline

#### Summary

status measured difficulty not learned 37% [default] 0

No repetitions