# Executing AWS infrastructure creation using Ansible parallel

**URL:** <https://forum.ansible.com/t/executing-aws-infrastructure-creation-using-ansible-parallel/17955>\
**Category:** Ansible Project\
**Tags:** aws\
**Created:** [April 10, 2015, 6:34pm UTC](https://forum.ansible.com/t/executing-aws-infrastructure-creation-using-ansible-parallel/17955 "2015-04-10T18:34:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Mehrotra](https://avatars.discourse-cdn.com/v4/letter/r/5e9695/32.png) [@Rahul\_Mehrotra](https://forum.ansible.com/u/Rahul_Mehrotra)\
**Post date:** [April 10, 2015, 6:34pm UTC](https://forum.ansible.com/t/executing-aws-infrastructure-creation-using-ansible-parallel/17955/1 "2015-04-10T18:34:55Z")

</div>

Hi,  
So I am currently working on coding my AWS infrastructure using Ansible, I have created roles and playbooks for creating VPC, security groups, EC2 instances, creating RDS , Elasticache, ELB , ASG etc.

I have a central main file which is used to call playbook for EC2, RDS, Elasticache creation.

`

main.yml

- include: vpc.yml
- include: security\_groups.yml
- include: nat.yml

`

The entire infrastructure gets created and provisioned perfectly. The only problem is that each playbook is executed sequentially, however there are some playbooks which I would like to be executed in parallel for example NAT & RDS & Elasticache can be executed in parallel, then EC2 instance & ELB can be created in parallel, then Launch Config then ASG.

So is there a way I can parallelize the playbook execution. Thanks
