# copy files from list of hosts to another lists of hosts

**URL:** <https://forum.ansible.com/t/copy-files-from-list-of-hosts-to-another-lists-of-hosts/31169>\
**Category:** Ansible Project\
**Created:** [August 29, 2019, 8:01pm UTC](https://forum.ansible.com/t/copy-files-from-list-of-hosts-to-another-lists-of-hosts/31169 "2019-08-29T20:01:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jer8jer](https://avatars.discourse-cdn.com/v4/letter/j/7ab992/32.png) [@jer8jer](https://forum.ansible.com/u/jer8jer)\
**Post date:** [August 29, 2019, 8:01pm UTC](https://forum.ansible.com/t/copy-files-from-list-of-hosts-to-another-lists-of-hosts/31169/1 "2019-08-29T20:01:47Z")

</div>

hosts are 1:1

host1 → host3  
host4 → host5  
host9 → host11

say /etc/resolv.conf for example

so fetch module first then copy module but not sure how to put these host values in an array
