# Delegating group of tasks in a role

**URL:** <https://forum.ansible.com/t/delegating-group-of-tasks-in-a-role/25887>\
**Category:** Ansible Project\
**Created:** [November 1, 2017, 3:40pm UTC](https://forum.ansible.com/t/delegating-group-of-tasks-in-a-role/25887 "2017-11-01T15:40:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark.haney](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@mark.haney](https://forum.ansible.com/u/mark.haney)\
**Post date:** [November 1, 2017, 3:40pm UTC](https://forum.ansible.com/t/delegating-group-of-tasks-in-a-role/25887/1 "2017-11-01T15:40:13Z")

</div>

Is there a way to delegate a group of tasks to a certain host from inside a role? As in, I want to run: pull a git repo, run composer install and make on one host then take the compiled files to other hosts in the role.

Does that make sense?

---

<div class="post-metadata">

**Author:** ![Kai\_Stian\_Olstad](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@Kai\_Stian\_Olstad](https://forum.ansible.com/u/Kai_Stian_Olstad)\
**Post date:** [November 1, 2017, 4:40pm UTC](https://forum.ansible.com/t/delegating-group-of-tasks-in-a-role/25887/2 "2017-11-01T16:40:49Z")

</div>

You have delegate\_to: and with block: you can group task together
