# increase local host performance for copy and template module

**URL:** <https://forum.ansible.com/t/increase-local-host-performance-for-copy-and-template-module/28726>\
**Category:** Ansible Project\
**Created:** [October 4, 2018, 3:55pm UTC](https://forum.ansible.com/t/increase-local-host-performance-for-copy-and-template-module/28726 "2018-10-04T15:55:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Uwe\_Sauter](https://avatars.discourse-cdn.com/v4/letter/u/41988e/32.png) [@Uwe\_Sauter](https://forum.ansible.com/u/Uwe_Sauter)\
**Post date:** [October 4, 2018, 3:55pm UTC](https://forum.ansible.com/t/increase-local-host-performance-for-copy-and-template-module/28726/1 "2018-10-04T15:55:39Z")

</div>

Hi all,

I'm having a performance issue with local execution of the copy and template modules that are put into task files. Both modules  
are used in with\_nested loops where item[0] is about 100 elements and item[1] is about 6 elements long for copy and 10 elements  
long for template.

Execution of these tasks take about 15min which means that one loop execution is a little bit less than a second.

I've already tried to put the destination of the copy/template operation to /dev/shm but that didn't result in a speedup.

Any tips on how to increase performance for those modules?

I'm already using "connection: local" and "gather\_facts: false", the host has an SSD and is running CentOS 7.5, Ansible 2.6.3.

Thanks,

&nbsp;&nbsp;Uwe
