v2 - issue running copy module

90 views
Skip to first unread message

Rodrigo B Brasil

unread,
Jun 30, 2015, 2:51:02 PM6/30/15
to ansible...@googlegroups.com
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'


--
Rodrigo Bezerra Brasil
Belém, PA, BR


Controle é ilusão.

joshm

unread,
Jul 1, 2015, 1:58:32 PM7/1/15
to ansible...@googlegroups.com
I'm seeing this as well with latest code as of 7/1/2015

Brian Coca

unread,
Jul 1, 2015, 2:22:40 PM7/1/15
to ansible...@googlegroups.com
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).
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-proje...@googlegroups.com.
> To post to this group, send email to ansible...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/a188e708-5007-470e-94a6-dab91775bd1d%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.



--
Brian Coca
Reply all
Reply to author
Forward
0 new messages