# Limit bandwidth when copying files for some subnets

**URL:** <https://forum.ansible.com/t/limit-bandwidth-when-copying-files-for-some-subnets/31468>\
**Category:** Ansible Project\
**Created:** [October 14, 2019, 7:12am UTC](https://forum.ansible.com/t/limit-bandwidth-when-copying-files-for-some-subnets/31468 "2019-10-14T07:12:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![astrakid](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/astrakid/32/1789_2.png) [@astrakid](https://forum.ansible.com/u/astrakid)\
**Post date:** [October 14, 2019, 7:12am UTC](https://forum.ansible.com/t/limit-bandwidth-when-copying-files-for-some-subnets/31468/1 "2019-10-14T07:12:55Z")

</div>

Hi,  
I am quite new to ansible but really excited what it is able to do.  
First playbooks have been successfully executed, now I am going to optimize them for my environment.

We have some devices at locations with a slow wan-connection. In order to have not all available bandwidth used by ansible (QoS is not yet working) I would like to limit the bandwidth for some ip-subnets.

Is this possible?

regards,  
andre

---

<div class="post-metadata">

**Author:** ![vbotka](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/vbotka/32/359_2.png) [@vbotka](https://forum.ansible.com/u/vbotka)\
**Post date:** [October 14, 2019, 7:36am UTC](https://forum.ansible.com/t/limit-bandwidth-when-copying-files-for-some-subnets/31468/2 "2019-10-14T07:36:10Z")

</div>

Hi,

---

<div class="post-metadata">

**Author:** ![astrakid](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/astrakid/32/1789_2.png) [@astrakid](https://forum.ansible.com/u/astrakid)\
**Post date:** [October 14, 2019, 9:42am UTC](https://forum.ansible.com/t/limit-bandwidth-when-copying-files-for-some-subnets/31468/3 "2019-10-14T09:42:05Z")

</div>

makes sense. any more documentation on that?  
i would need 4 ansible controller.

---

<div class="post-metadata">

**Author:** ![vbotka](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/vbotka/32/359_2.png) [@vbotka](https://forum.ansible.com/u/vbotka)\
**Post date:** [October 14, 2019, 11:04am UTC](https://forum.ansible.com/t/limit-bandwidth-when-copying-files-for-some-subnets/31468/4 "2019-10-14T11:04:18Z")

</div>

Take a look at "Best practices"  
[https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_best\_practices.html#best-practices](https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html#best-practices)

and at "Directory Layout" in particular.  
[https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_best\_practices.html#directory-layout](https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html#directory-layout)

Make the decision where to store the "Variables and Vaults".  
[https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_best\_practices.html#variables-and-vaults](https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html#variables-and-vaults)

Put everything into a "Version Control" to easily clone and move around the  
controller  
[https://docs.ansible.com/ansible/latest/user\_guide/playbooks\_best\_practices.html#version-control](https://docs.ansible.com/ansible/latest/user_guide/playbooks_best_practices.html#version-control)

FWIW. Below is link to my scripts that automate the creation of a "workbench"  
[https://github.com/vbotka/ansible-ansible/tree/master/contrib/workbench](https://github.com/vbotka/ansible-ansible/tree/master/contrib/workbench)

Take a look at "Ansible Runner" (offers project abstract level similar to AWX)  
[https://ansible-runner.readthedocs.io/en/latest/](https://ansible-runner.readthedocs.io/en/latest/)

Take a look at "Ansible pull" (might fit the use-case)  
[https://docs.ansible.com/ansible/latest/cli/ansible-pull.html](https://docs.ansible.com/ansible/latest/cli/ansible-pull.html)

Cheers,

&nbsp;&nbsp;-vlado
