# Getting lost in nesting

**URL:** <https://forum.ansible.com/t/getting-lost-in-nesting/23243>\
**Category:** Ansible Project\
**Created:** [December 12, 2016, 9:16pm UTC](https://forum.ansible.com/t/getting-lost-in-nesting/23243 "2016-12-12T21:16:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![John\_Oliver](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Post date:** [December 12, 2016, 9:16pm UTC](https://forum.ansible.com/t/getting-lost-in-nesting/23243/1 "2016-12-12T21:16:17Z")

</div>

I have a master playlist, global.yml, in which I specified hosts, become, and includes for different OSes That worked fine until I went to add handlers. In my included playbooks, I did something like:

- handlers

- name: handler 1  
etc etc

- tasks:

- name: Task 1  
etc etc

At that point, I’m getting complaints about “ERROR! the field ‘hosts’ is required but was not set” Moving hosts statements to the included playbooks hasn’t helped. I’m certain I’ve gotten lost in dashes and no dashes and indentation. Or am i just going about this the wrong way?

---

<div class="post-metadata">

**Author:** ![John\_Oliver](https://avatars.discourse-cdn.com/v4/letter/j/97f17d/32.png) [@John\_Oliver](https://forum.ansible.com/u/John_Oliver)\
**Post date:** [December 12, 2016, 10:40pm UTC](https://forum.ansible.com/t/getting-lost-in-nesting/23243/2 "2016-12-12T22:40:27Z")

</div>

N/M, after re-reading sections on syntax and playbooks, I got it all ironed out 🙂
