# Ansible very slow

**URL:** <https://community.f5.com/t/ansible-very-slow/74313>\
**Category:** Technical Forums\
**Tags:** ansible, devops, ltm, application-delivery\
**Created:** [April 8, 2024, 3:26pm UTC](https://community.f5.com/t/ansible-very-slow/74313 "2024-04-08T15:26:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![romio28](https://avatars.discourse-cdn.com/v4/letter/r/9de0a6/32.png) [@romio28](https://community.f5.com/u/romio28)\
**Post date:** [April 8, 2024, 3:26pm UTC](https://community.f5.com/t/ansible-very-slow/74313/1 "2024-04-08T15:26:55Z")

</div>

I’m trying to make e playbook to create pools and virtual servers but it take a while, below an example, any solution?

---  
- name: Create local traffic objects on a BIG-IP  
&nbsp; hosts: F5  
&nbsp; gather\_facts: False  
&nbsp; connection: local  
&nbsp; vars:  
&nbsp; &nbsp; provider:  
&nbsp; &nbsp; &nbsp; password: “{{ ansible\_password }}”  
&nbsp; &nbsp; &nbsp; server: “{{ ansible\_host }}”  
&nbsp; &nbsp; &nbsp; user: “{{ ansible\_user }}”  
&nbsp; &nbsp; &nbsp; validate\_certs: False

pools:  
&nbsp; &nbsp; &nbsp; &nbsp; - [“POOL\_1”, “INTERNET”, “MEM\_1”]  
&nbsp; &nbsp; &nbsp; &nbsp; - [“POOL\_2”, “INTERNET”, “MEM\_2”]  
&nbsp; &nbsp; &nbsp; &nbsp; - [“POOL\_3”, “WAN”, “MEM\_3”]

tasks:

- name: Create pools  
&nbsp; &nbsp; &nbsp; bigip\_pool:  
&nbsp; &nbsp; &nbsp; &nbsp; state: present  
&nbsp; &nbsp; &nbsp; &nbsp; name: “{{ item[0] }}”  
&nbsp; &nbsp; &nbsp; &nbsp; partition: “{{ item[1] }}”  
&nbsp; &nbsp; &nbsp; &nbsp; provider: “{{ provider }}”  
&nbsp; &nbsp; &nbsp; #delegate\_to: localhost  
&nbsp; &nbsp; &nbsp; loop:  
&nbsp; &nbsp; &nbsp; &nbsp; “{{ pools }}”

- name: Add pool members  
&nbsp; &nbsp; &nbsp; bigip\_pool\_member:  
&nbsp; &nbsp; &nbsp; &nbsp; name: “{{ item[0] }}”  
&nbsp; &nbsp; &nbsp; &nbsp; partition: “{{ item[1] }}”  
&nbsp; &nbsp; &nbsp; &nbsp; host: “{{ item[2] }}”  
&nbsp; &nbsp; &nbsp; &nbsp; port: “80”  
&nbsp; &nbsp; &nbsp; &nbsp; provider: “{{ provider }}”  
&nbsp; &nbsp; &nbsp; &nbsp; reuse\_nodes: false  
&nbsp; &nbsp; &nbsp; delegate\_to: localhost  
&nbsp; &nbsp; &nbsp; loop:  
&nbsp; &nbsp; &nbsp; &nbsp; “{{ pools }}”
