July 2017
Intermediate to advanced
266 pages
6h 36m
English
Some Ansible tasks can have a bunch of parameters (so much so that the simplicity and readability of the task become ambiguous). The YAML implementation has also matured in such a way as to support parameters across multiple lines for better readability. This is specifically a scalar folded approach that is available within the YAML language directly. Let's take a look at an example provided by the YAML creators to understand how line folding works in YAML:
# Multiple-line strings can be written either as a 'literal block' (using |), # or a 'folded block' (using '>'). literal_block: | This entire block of text will be the value of the 'literal_block' key, with line breaks being preserved. The literal continues until ...
Read now
Unlock full access