# Ansible + ACI very slow execution

**URL:** <https://forum.ansible.com/t/ansible-aci-very-slow-execution/36227>\
**Category:** Ansible Project\
**Created:** [January 20, 2022, 8:13am UTC](https://forum.ansible.com/t/ansible-aci-very-slow-execution/36227 "2022-01-20T08:13:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JP1](https://avatars.discourse-cdn.com/v4/letter/j/f1d935/32.png) [@JP1](https://forum.ansible.com/u/JP1)\
**Post date:** [January 20, 2022, 8:13am UTC](https://forum.ansible.com/t/ansible-aci-very-slow-execution/36227/1 "2022-01-20T08:13:46Z")

</div>

Hi,

I wrote playbook that should assign static port mappings in 130 EPG for 25 interfaces and it took about 1 hour to execute.

Playbook :

- name: Do static port mapping  
include: do\_static\_binding.yaml  
with\_items: “{{ new\_interfaces }}”  
vars:  
subnets: “{{ subnets\_data }}”

**do\_static\_binding.yaml** - simple playbook which is using module:

aci\_static\_binding\_to\_epg

Where **new\_interfaces** - list of interfaces that should be added to EPGs

**subnets\_data** - list of dicts containing Tenant, AP, EPG

Is there is a way to speed up playbook execution ? As we want to use Ansible for all automation tasks, not Python scripts.

P.S

Simple python script that is doing API requests do same work for about 1-2 minutes.
