# issue with copy module

**URL:** <https://forum.ansible.com/t/issue-with-copy-module/12950>\
**Category:** Ansible Project\
**Created:** [June 12, 2013, 12:36pm UTC](https://forum.ansible.com/t/issue-with-copy-module/12950 "2013-06-12T12:36:27Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jean-marc\_pouchoulon](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jean-marc\_pouchoulon](https://forum.ansible.com/u/jean-marc_pouchoulon)\
**Post date:** [June 12, 2013, 12:36pm UTC](https://forum.ansible.com/t/issue-with-copy-module/12950/1 "2013-06-12T12:36:27Z")

</div>

hi,

I’v got a weird problem with copy module.

sudo ansible-playbook ./test.yml -e host=vmldmz

PLAY [vmldmz-haproxy4] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

GATHERING FACTS \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
ok: [vmldmz]

TASK: [copy preferences] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
failed: [vmldmz] =\> {“failed”: true}  
msg: unsupported parameter for module: original\_basename

FATAL: all hosts have already failed – aborting

PLAY RECAP \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
to retry, use: --limit @/var/tmp/ansible/test.retry

vmldmz : ok=1 changed=0 unreachable=0 failed=1

here is my simple playbook:

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [June 12, 2013, 3:45pm UTC](https://forum.ansible.com/t/issue-with-copy-module/12950/2 "2013-06-12T15:45:31Z")

</div>

check to see if you have installed ansible 1.2 over \<=1.1, modules were moved and you seem to be picking up a mix of new and old ones.

---

<div class="post-metadata">

**Author:** ![jean-marc\_pouchoulon](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jean-marc\_pouchoulon](https://forum.ansible.com/u/jean-marc_pouchoulon)\
**Post date:** [June 12, 2013, 4:11pm UTC](https://forum.ansible.com/t/issue-with-copy-module/12950/3 "2013-06-12T16:11:33Z")

</div>

thanks for you answer

but I’v purged share/ansible/ and  
/usr/local/lib/python2.6/dist-packages/ansible

reinstalled python27 from scratch and use virtualenv

another thing to do ?

thanks again

---

<div class="post-metadata">

**Author:** ![Brian\_Coca1](https://avatars.discourse-cdn.com/v4/letter/b/278dde/32.png) [@Brian\_Coca1](https://forum.ansible.com/u/Brian_Coca1)\
**Post date:** [June 12, 2013, 4:13pm UTC](https://forum.ansible.com/t/issue-with-copy-module/12950/4 "2013-06-12T16:13:05Z")

</div>

try using from github checkout and sourcing ansilbe/hacking/env-setup, that will force everything to use the checkout. if problem goes away you might still have a lingering old install somewhere else that python is looking at.

---

<div class="post-metadata">

**Author:** ![jean-marc\_pouchoulon](https://avatars.discourse-cdn.com/v4/letter/j/51bf81/32.png) [@jean-marc\_pouchoulon](https://forum.ansible.com/u/jean-marc_pouchoulon)\
**Post date:** [June 12, 2013, 7:36pm UTC](https://forum.ansible.com/t/issue-with-copy-module/12950/5 "2013-06-12T19:36:35Z")

</div>

I found an old copy modules in the directory tree under the playbook

I don’t know why but I was used rather other PATHs even using virtual env or copying the whole tree on another machine

thanks

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [June 12, 2013, 8:36pm UTC](https://forum.ansible.com/t/issue-with-copy-module/12950/6 "2013-06-12T20:36:21Z")

</div>

Yep, clean that up and you’ll be fine.

Ansible is configured to look for modules in subdirectories (categorized ones) first, so this may have happened if you somehow had a library path that didn’t include the newly categorized install ones, like if you had done a previous make install or something?

Anyway, on a clean machine you should be good to go.

---

<div class="post-metadata">

**Author:** ![Dylan\_Martin](https://avatars.discourse-cdn.com/v4/letter/d/8797f3/32.png) [@Dylan\_Martin](https://forum.ansible.com/u/Dylan_Martin)\
**Post date:** [June 13, 2013, 6:46pm UTC](https://forum.ansible.com/t/issue-with-copy-module/12950/7 "2013-06-13T18:46:51Z")

</div>

I just had this same problem. For me, it turned out that my umask was too tight (0077) when I did the install and I couldn’t read /usr/share/ansible. I deleted it and re-installed it a few times before I figured out my mistake. D’oh!
