# Ansible 1.7.1 : Slowness at playbook startup

**URL:** <https://forum.ansible.com/t/ansible-1-7-1-slowness-at-playbook-startup/16270>\
**Category:** Ansible Project\
**Created:** [September 18, 2014, 12:25pm UTC](https://forum.ansible.com/t/ansible-1-7-1-slowness-at-playbook-startup/16270 "2014-09-18T12:25:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ludovic\_Petetin](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@Ludovic\_Petetin](https://forum.ansible.com/u/Ludovic_Petetin)\
**Post date:** [September 18, 2014, 12:25pm UTC](https://forum.ansible.com/t/ansible-1-7-1-slowness-at-playbook-startup/16270/1 "2014-09-18T12:25:59Z")

</div>

Here is a simple playbook test.yml:

---

<div class="post-metadata">

**Author:** ![Serge\_van\_Ginderacht](https://avatars.discourse-cdn.com/v4/letter/s/b782af/32.png) [@Serge\_van\_Ginderacht](https://forum.ansible.com/u/Serge_van_Ginderacht)\
**Post date:** [September 18, 2014, 12:43pm UTC](https://forum.ansible.com/t/ansible-1-7-1-slowness-at-playbook-startup/16270/2 "2014-09-18T12:43:47Z")

</div>

​Yes. The fact that you notice this might be explained in that you have an  
extensive inventory, with lots of groups and group\_vars etc?

Before 1.7.1, vars for hosts were read at the start of a play where that  
host is targetted. But group vars were parsed each time again, for every  
host that were member of a group. This made inialisation for a play  
tareggting hosts: all painfully slow.  
Now, the whole inventory (especially group\_vars and host\_vars) are parsed  
in 1 pass, but completely.

This makes it a bit slower to initialize, but makes it lots faster at  
execution.

Could you time the same test with this playbook?

- hosts: all  
&nbsp;&nbsp;gather\_facts: false  
&nbsp;&nbsp;tasks:  
&nbsp;&nbsp;&nbsp;&nbsp;- pause: seconds=0

---

<div class="post-metadata">

**Author:** ![Ludovic\_Petetin](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@Ludovic\_Petetin](https://forum.ansible.com/u/Ludovic_Petetin)\
**Post date:** [September 18, 2014, 2:33pm UTC](https://forum.ansible.com/t/ansible-1-7-1-slowness-at-playbook-startup/16270/3 "2014-09-18T14:33:44Z")

</div>

Thanks for the reply. You led me on the right path. We found out that we generate a lot of IPs for our IP addressing plan and it takes a lot of time.

Thanks

Ludo
