Groups
Groups
Sign in
Groups
Groups
Ansible Project
Conversations
About
Send feedback
Help
Unsure about YAML syntax
19 views
Skip to first unread message
Uwe Sauter
unread,
Jun 8, 2016, 10:42:58 AM
6/8/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
6/8/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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