4 ms·
You can indent it though, but the hyphen already means a list item. That is a preferred syntax for many that are used to YAML though.
by Rapzid 8y ago
You can indent it though, but the hyphen already means a list item.
That is a preferred syntax for many that are used to YAML though.
- kccqzy 8y agoThat's kind of my point. Indentation is optional, so many don't indent, making the resulting document harder to understand.
- emmelaich 8y agoFWIW, I think yaml / ansible linters and style checkers typically require indentation.
- XorNot 8y agoThe hyphen is associated with the a though. In what's posted, a is a list, not a map - the type of the parent is being declared by that hyphen.