Ansible + ACI very slow execution

34 views
Skip to first unread message

JP

unread,
Jan 20, 2022, 9:48:13 AM1/20/22
to Ansible Project

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.

Reply all
Reply to author
Forward
0 new messages