# add\_host madness... or role ...singletons??? what?

**URL:** <https://forum.ansible.com/t/add-host-madness-or-role-singletons-what/18480>\
**Category:** Ansible Project\
**Created:** [June 11, 2015, 9:45pm UTC](https://forum.ansible.com/t/add-host-madness-or-role-singletons-what/18480 "2015-06-11T21:45:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimon](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Dimon](https://forum.ansible.com/u/Dimon)\
**Post date:** [June 11, 2015, 9:45pm UTC](https://forum.ansible.com/t/add-host-madness-or-role-singletons-what/18480/1 "2015-06-11T21:45:29Z")

</div>

I’ve got a playbook in which I’m trying to use add\_host to dynamically generate a group of hosts. Here’s what I have:

\roles  
\ group\_servers  
\ tasks  
\ main.yml  
\ common  
\ tasks  
\ main.yml  
setup.yml

==\> ./roles/group\_my\_servers/tasks/main.yml

---

<div class="post-metadata">

**Author:** ![Dimon](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@Dimon](https://forum.ansible.com/u/Dimon)\
**Post date:** [June 11, 2015, 9:48pm UTC](https://forum.ansible.com/t/add-host-madness-or-role-singletons-what/18480/2 "2015-06-11T21:48:55Z")

</div>

tested by moving add\_host from role over to “tasks” - same result. Sounds like I’m missing the point someplace, but where?
