# delegate\_to a list does not appear to work in a role

**URL:** <https://forum.ansible.com/t/delegate-to-a-list-does-not-appear-to-work-in-a-role/15370>\
**Category:** Ansible Project\
**Created:** [May 29, 2014, 7:51pm UTC](https://forum.ansible.com/t/delegate-to-a-list-does-not-appear-to-work-in-a-role/15370 "2014-05-29T19:51:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stewart\_M](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@Stewart\_M](https://forum.ansible.com/u/Stewart_M)\
**Post date:** [May 29, 2014, 7:51pm UTC](https://forum.ansible.com/t/delegate-to-a-list-does-not-appear-to-work-in-a-role/15370/1 "2014-05-29T19:51:54Z")

</div>

I appear to be having a problem when trying to pass a list of hosts to delegate\_to, within a role.

(Simplified examples to demonstrate the behavior I am seeing, using freshly cloned version from Github)

This works as expected:

**site.yml**

`

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan1](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@Michael\_DeHaan1](https://forum.ansible.com/u/Michael_DeHaan1)\
**Post date:** [May 31, 2014, 4:17pm UTC](https://forum.ansible.com/t/delegate-to-a-list-does-not-appear-to-work-in-a-role/15370/2 "2014-05-31T16:17:42Z")

</div>

This sounds like it could be related to [https://github.com/ansible/ansible/issues/7535](https://github.com/ansible/ansible/issues/7535) … please see if it is the same.

---

<div class="post-metadata">

**Author:** ![Stewart\_M](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@Stewart\_M](https://forum.ansible.com/u/Stewart_M)\
**Post date:** [June 4, 2014, 4:04pm UTC](https://forum.ansible.com/t/delegate-to-a-list-does-not-appear-to-work-in-a-role/15370/3 "2014-06-04T16:04:09Z")

</div>

Many thanks for the pointer to that bug. Pulling ansible 1.7 (devel d9df607972) seems to have cleared the issue and all is working as I had hoped, so it does look like it was a related issue.
