Unsure about YAML syntax

19 views
Skip to first unread message

Uwe Sauter

unread,
Jun 8, 2016, 10:42:58 AM6/8/16
to Ansible Project
Hi all,

I'm a bit unsure about YAML syntax regarding lists. Could someone please verify that the following two lists are equivalent?


No indentation for list items:
---
test:
- a
- b
- c

Indentation for list items:
---
test:
- a
- b
- c


Thanks,

Uwe

Brian Coca

unread,
Jun 8, 2016, 10:52:50 AM6/8/16
to ansible...@googlegroups.com
They are the same as - at same level as key is considered 'inside', i personally prefer the 2nd form as it is 'visually clear'.


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages