Skip to content

Ansible YAML multiline strings

Some styles to remember.

  • ''>'' - Most common multiline string, does not preserve new lines
  • ''|'' - Preserves newlines
  • ''>-'', ''|-'' - As above but strips trailing new line

See also


Last update: March 29, 2020