# Use of VARS and Register at the same time

**URL:** <https://forum.ansible.com/t/use-of-vars-and-register-at-the-same-time/33624>\
**Category:** Ansible Project\
**Created:** [August 16, 2020, 6:38pm UTC](https://forum.ansible.com/t/use-of-vars-and-register-at-the-same-time/33624 "2020-08-16T18:38:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Poseidon\_Olympian](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@Poseidon\_Olympian](https://forum.ansible.com/u/Poseidon_Olympian)\
**Post date:** [August 16, 2020, 6:38pm UTC](https://forum.ansible.com/t/use-of-vars-and-register-at-the-same-time/33624/1 "2020-08-16T18:38:22Z")

</div>

Hello,

Appreciated of any Help…  
I’m looking for any approached or solution that a Variable (VARS) and Register would be able to use in one TASK Copy Module.

here’s my Code as example…  
Basically, I need to copy all cfile in multiple remote target directories.

@copy.yml
