# Using async and poll on includes or imports

**URL:** <https://forum.ansible.com/t/using-async-and-poll-on-includes-or-imports/27810>\
**Category:** Ansible Project\
**Created:** [June 17, 2018, 5:51am UTC](https://forum.ansible.com/t/using-async-and-poll-on-includes-or-imports/27810 "2018-06-17T05:51:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeldamata](https://avatars.discourse-cdn.com/v4/letter/j/73ab20/32.png) [@joeldamata](https://forum.ansible.com/u/joeldamata)\
**Post date:** [June 17, 2018, 5:51am UTC](https://forum.ansible.com/t/using-async-and-poll-on-includes-or-imports/27810/1 "2018-06-17T05:51:31Z")

</div>

Hi,

I have been trying to find a way to speed up my playbooks. What i would like to do is have a playbook wherein i am running all tasks on a single host at the same time. Initially i thought i could use async/poll to fire all the tasks in my playbook at the same time. I found out that its not possible to use async/poll on includes or imports in [https://github.com/ansible/ansible/issues/19083](https://github.com/ansible/ansible/issues/19083)

In another thread it was advised that to run multiple playbooks/includes in parallel i should use outside tools like gnu parallels. This isn’t pretty for me as I would be prompted for a password at each ansible-playbook call. I can’t encrypt the passwords and place them outside of a vault because these playbooks are used by a team and would be a hassle to swap them out for everyone. ([https://github.com/ansible/proposals/issues/31](https://github.com/ansible/proposals/issues/31))

What I am looking for is if someone else has a similar situation which they have solved or if I am doing something fundamentally wrong. Any help is greatly appreciated!!!

What i currently have is the below: (there is about 10 other apps that would be in the inventory but ive only included 2 for this purpose)

**Inventory:**

[all:vars]  
complex\_prefix=info  
instance=prod  
user\_suffix=

[service1]  
host1

[service2]  
host[1:2]

**Playbook:**
