Ansible Flashcards
What does a | do in YAML?
Preserves newlines you put into it. So the lines below it will be treated as a block, and keep newlines. All lines of the block need to be indented at same level.
What does a > do in YAML?
Converts newlines to a single space. So block below it will be one line when processed, but entered on multiple lines. All lines of the block need to be indented at the same level. To get newlines in there just indent another level.
What does ‘—’ do in YAML?
Marks start of file/directive, can use again to start a new file/directive within same file.
What does ‘…’ do in YAML?
Marks the end of directive/file without closing the stream.
How do you use an anchor?
&name to declare it, *name to use it.