# v2 - issue running copy module

**URL:** <https://forum.ansible.com/t/v2-issue-running-copy-module/18645>\
**Category:** Ansible Project\
**Created:** [June 30, 2015, 6:50pm UTC](https://forum.ansible.com/t/v2-issue-running-copy-module/18645 "2015-06-30T18:50:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodrigo\_B\_Brasil](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@Rodrigo\_B\_Brasil](https://forum.ansible.com/u/Rodrigo_B_Brasil)\
**Post date:** [June 30, 2015, 6:50pm UTC](https://forum.ansible.com/t/v2-issue-running-copy-module/18645/1 "2015-06-30T18:50:28Z")

</div>

Hello all!

Does anyone had this issue using the copy module in v2 (2.0.0 0.0.pre)? It was working in 1.9.2.

- copy: src=files/etc\_logrotate.d\_zabbix\_agentd  
dest=/etc/logrotate.d/zabbix\_agentd  
owner=root group=root mode=0644

Its returning this error to me:

An exception occurred during task execution. The full traceback is:  
Traceback (most recent call last):  
File “/opt/rh/python27/root/usr/lib/python2.7/site-packages/ansible-2.0.0-py2.7.egg/ansible/executor/process/worker.py”, line 118, in run  
executor\_result = TaskExecutor(host, task, job\_vars, new\_connection\_info, self.\_new\_stdin, self.\_loader, shared\_loader\_obj).run()  
File “/opt/rh/python27/root/usr/lib/python2.7/site-packages/ansible-2.0.0-py2.7.egg/ansible/executor/task\_executor.py”, line 111, in run  
res = self.\_execute()  
File “/opt/rh/python27/root/usr/lib/python2.7/site-packages/ansible-2.0.0-py2.7.egg/ansible/executor/task\_executor.py”, line 272, in \_execute  
result = self.\_handler.run(task\_vars=variables)  
File “/opt/rh/python27/root/usr/lib/python2.7/site-packages/ansible-2.0.0-py2.7.egg/ansible/plugins/action/copy.py”, line 154, in run  
if self.\_shell.path\_has\_trailing\_slash(dest):  
AttributeError: ‘ActionModule’ object has no attribute ‘\_shell’

---

<div class="post-metadata">

**Author:** ![joshm](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@joshm](https://forum.ansible.com/u/joshm)\
**Post date:** [July 1, 2015, 5:38pm UTC](https://forum.ansible.com/t/v2-issue-running-copy-module/18645/2 "2015-07-01T17:38:57Z")

</div>

I’m seeing this as well with latest code as of 7/1/2015

---

<div class="post-metadata">

**Author:** ![Brian\_Coca](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Brian\_Coca](https://forum.ansible.com/u/Brian_Coca)\
**Post date:** [July 1, 2015, 6:22pm UTC](https://forum.ansible.com/t/v2-issue-running-copy-module/18645/3 "2015-07-01T18:22:36Z")

</div>

this was temporary bug in the devel branch, I believe it has already  
been fixed (or the PRs that do are about to be merged).
