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