Skip to content

YAML

Created: 2018-11-09 10:29:50 -0800 Modified: 2018-11-09 15:29:01 -0800

Just writing some YAML references here.

Don’t use backslashes!

You can do this by either treating the lines as new lines or spaces:

|
\ /| |\| |
/ / | | | |__

↑ That will be interpreted as having newlines since there’s a pipe character.

>
This will just show
with spaces
in the string

↑ This is interpreted with spaces due to the ”>”

Be very careful if you have a shell script running and ”>” as your whitespace separation character! You may run into a problem like this:

- run:
name: Show why comments are bad in conjunction with ">"
command: >
./foo.exe
--bar bar # helpful comment here
--baz baz