# copy file to multiple datastores in different vcenters

**URL:** <https://forum.ansible.com/t/copy-file-to-multiple-datastores-in-different-vcenters/38117>\
**Category:** Ansible Project\
**Created:** [June 17, 2023, 6:19am UTC](https://forum.ansible.com/t/copy-file-to-multiple-datastores-in-different-vcenters/38117 "2023-06-17T06:19:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tony\_Wong](https://avatars.discourse-cdn.com/v4/letter/t/3ab097/32.png) [@Tony\_Wong](https://forum.ansible.com/u/Tony_Wong)\
**Post date:** [June 17, 2023, 6:19am UTC](https://forum.ansible.com/t/copy-file-to-multiple-datastores-in-different-vcenters/38117/1 "2023-06-17T06:19:10Z")

</div>

any idea how to modify my playbook to copy file to multiple datastores on multiple vcenters?

---

<div class="post-metadata">

**Author:** ![atul\_mohan](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@atul\_mohan](https://forum.ansible.com/u/atul_mohan)\
**Post date:** [August 19, 2023, 6:15pm UTC](https://forum.ansible.com/t/copy-file-to-multiple-datastores-in-different-vcenters/38117/2 "2023-08-19T18:15:59Z")

</div>

To copy a file to multiple datastores on multiple vCenters, you can modify your playbook to loop through a list of vCenters and datastores
