# Unsure about YAML syntax

**URL:** <https://forum.ansible.com/t/unsure-about-yaml-syntax/21700>\
**Category:** Ansible Project\
**Created:** [June 8, 2016, 2:42pm UTC](https://forum.ansible.com/t/unsure-about-yaml-syntax/21700 "2016-06-08T14:42:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uwe\_Sauter](https://avatars.discourse-cdn.com/v4/letter/u/41988e/32.png) [@Uwe\_Sauter](https://forum.ansible.com/u/Uwe_Sauter)\
**Post date:** [June 8, 2016, 2:42pm UTC](https://forum.ansible.com/t/unsure-about-yaml-syntax/21700/1 "2016-06-08T14:42:25Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [June 8, 2016, 2:52pm UTC](https://forum.ansible.com/t/unsure-about-yaml-syntax/21700/2 "2016-06-08T14:52:44Z")

</div>

They are the same as - at same level as key is considered ‘inside’, i personally prefer the 2nd form as it is ‘visually clear’.
