# Playbook style reminder: whitespace is your friend!

**URL:** <https://forum.ansible.com/t/playbook-style-reminder-whitespace-is-your-friend/14041>\
**Category:** Ansible Project\
**Created:** [December 2, 2013, 1:29pm UTC](https://forum.ansible.com/t/playbook-style-reminder-whitespace-is-your-friend/14041 "2013-12-02T13:29:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [December 2, 2013, 1:29pm UTC](https://forum.ansible.com/t/playbook-style-reminder-whitespace-is-your-friend/14041/1 "2013-12-02T13:29:03Z")

</div>

I’ve noticed a lot of examples on the internet like this:

- hosts: blarg  
tasks:
- name: aaaaa  
foo: aaaaaa
- name: bbbbb  
foo: bbbb  
handlers:
- name: ccccc  
cccc: dddd
- hosts: blarg2  
tasks:
- …

To which, I’ll say, this is making Ansible look really rough to people that have never seen it before, and breeds bad habits.

A little whitespace between the lines helps a ton. Take a look at this by comparison:

- hosts: blarg

tasks:

- name: aaaaa  
foo: aaaaaa

- name: bbbbb  
foo: bbbb

handlers:

- name: ccccc  
cccc: dddd

- hosts: blarg2  
tasks:

- …

See the formatting, for instance, in some of the example content: [http://github.com/ansible/ansible-examples](http://github.com/ansible/ansible-examples).

I’m going to open a docs ticket to remind us to make sure all of the docs content enforces this throughout.
