How do I declare an array in YAML?
Array elements in the YAML file contain separate lines, Also called multiline array strings. Let’s declare key and value as an array in YAML. We have to use a sequence with key=roles, and value is a multi-line array of strings. Here is an example of the YAML sequence that is the same as multi-line strings.