# bug in copy module?

**URL:** <https://forum.ansible.com/t/bug-in-copy-module/11948>\
**Category:** Ansible Project\
**Tags:** ansible-project\
**Created:** [October 1, 2012, 1:34pm UTC](https://forum.ansible.com/t/bug-in-copy-module/11948 "2012-10-01T13:34:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [October 1, 2012, 1:34pm UTC](https://forum.ansible.com/t/bug-in-copy-module/11948/1 "2012-10-01T13:34:46Z")

</div>

What version of ansible (ansible --version) ?

Also can you show me where you set those variables?

---

<div class="post-metadata">

**Author:** ![Tchoum](https://avatars.discourse-cdn.com/v4/letter/t/dc4da7/32.png) [@Tchoum](https://forum.ansible.com/u/Tchoum)\
**Post date:** [October 2, 2012, 5:40am UTC](https://forum.ansible.com/t/bug-in-copy-module/11948/2 "2012-10-02T05:40:23Z")

</div>

Actually it was the developpement version, but the last time I tried, it was on a fresh git clone 15h ago.

As I use ansible in production I had to rollback to the 0.7 version

This is my playbook :

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@Michael\_DeHaan](https://forum.ansible.com/u/Michael_DeHaan)\
**Post date:** [October 2, 2012, 12:23pm UTC](https://forum.ansible.com/t/bug-in-copy-module/11948/3 "2012-10-02T12:23:06Z")

</div>

Oh, so basically it looks like you want to use vars from the first  
vars\_files in repeated vars\_files.

I suspect that doesn't work now but it is a good suggestion and we can  
make this work.

as a workaround, putting defaults in  
/directory/where/your/inventory/file/is/group\_vars/all

Group variables get loaded first and 'all' is a magic group that all  
systems are in.

Will look into the underlying vars\_files usage as this should be  
rather easy to fix.

Thanks!

---

<div class="post-metadata">

**Author:** ![Tchoum](https://avatars.discourse-cdn.com/v4/letter/t/dc4da7/32.png) [@Tchoum](https://forum.ansible.com/u/Tchoum)\
**Post date:** [October 2, 2012, 10:23pm UTC](https://forum.ansible.com/t/bug-in-copy-module/11948/4 "2012-10-02T22:23:23Z")

</div>

in 0.7 version its does work very well 🙂

2012/10/2 Michael DeHaan \<[michael.dehaan@gmail.com](mailto:michael.dehaan@gmail.com)\>
