# Slow execution of Ansible template in AWX 23.0

**URL:** <https://forum.ansible.com/t/slow-execution-of-ansible-template-in-awx-23-0/3042>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [December 22, 2023, 8:34am UTC](https://forum.ansible.com/t/slow-execution-of-ansible-template-in-awx-23-0/3042 "2023-12-22T08:34:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mapleos1123](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mapleos1123](https://forum.ansible.com/u/mapleos1123)\
**Post date:** [December 22, 2023, 8:34am UTC](https://forum.ansible.com/t/slow-execution-of-ansible-template-in-awx-23-0/3042/1 "2023-12-22T08:34:26Z")

</div>

I have noticed that in AWX 23.0, my Ansible template sometimes is executed very slowly, and it seems that this is related to the fact that sometimes when a template is executed, AWX itself first has to sync the inventory of this template, after the sync of inventory is done, then the template itself will be executed.

This has added more time in the execution time. My inventory is not changed frequently, thus I prefer not to sync the inventory every time when the template is executed.

I assume there should be a setting, but I could not find in GUI

Anyone has an idea ?

Many thanks !

---

<div class="post-metadata">

**Author:** ![djyasin](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/djyasin/32/114_2.png) [@djyasin](https://forum.ansible.com/u/djyasin)\
**Post date:** [January 3, 2024, 8:00pm UTC](https://forum.ansible.com/t/slow-execution-of-ansible-template-in-awx-23-0/3042/2 "2024-01-03T20:00:22Z")

</div>

@mapleos1123 hello! We do have a `cache_timeout` that can be set in the inventory. We would recommend doing some research around that.

---

<div class="post-metadata">

**Author:** ![mapleos1123](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@mapleos1123](https://forum.ansible.com/u/mapleos1123)\
**Post date:** [May 21, 2024, 8:30am UTC](https://forum.ansible.com/t/slow-execution-of-ansible-template-in-awx-23-0/3042/3 "2024-05-21T08:30:13Z")

</div>

@djyasin  
Can you provide a bit detailed info where I can find this setting ? As I could not find this setting after going through all configuration possible in my inventory

thanks a lot !

---

<div class="post-metadata">

**Author:** ![vibhor\_agarwalin](https://avatars.discourse-cdn.com/v4/letter/v/bb73d2/32.png) [@vibhor\_agarwalin](https://forum.ansible.com/u/vibhor_agarwalin)\
**Post date:** [May 21, 2024, 9:10am UTC](https://forum.ansible.com/t/slow-execution-of-ansible-template-in-awx-23-0/3042/4 "2024-05-21T09:10:26Z")

</div>

There will be an “Update on Launch” checkbox.  
Unselect it, this won’t try to update the inventory for every launch.
