# Error while copying the file

**URL:** <https://forum.ansible.com/t/error-while-copying-the-file/36139>\
**Category:** Ansible Project\
**Created:** [December 21, 2021, 10:15am UTC](https://forum.ansible.com/t/error-while-copying-the-file/36139 "2021-12-21T10:15:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kumar\_Rahul](https://avatars.discourse-cdn.com/v4/letter/k/aca169/32.png) [@Kumar\_Rahul](https://forum.ansible.com/u/Kumar_Rahul)\
**Post date:** [December 21, 2021, 10:15am UTC](https://forum.ansible.com/t/error-while-copying-the-file/36139/1 "2021-12-21T10:15:43Z")

</div>

Hello all ,  
I am new to this please help and reply

1. when i was trying to copy one file to other location i am getting

---

<div class="post-metadata">

**Author:** ![racke](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/racke/32/4767_2.png) [@racke](https://forum.ansible.com/u/racke)\
**Post date:** [December 21, 2021, 10:18am UTC](https://forum.ansible.com/t/error-while-copying-the-file/36139/2 "2021-12-21T10:18:47Z")

</div>

> Hello all ,  
> I am new to this please help and reply  
> 1. when i was trying to copy one file to other location i am getting  
> \*\*\*\*\*\*\*\*\*\*\*\*  
> ERROR! this task 'copy' has extra params, which is only allowed in the following modules: add\_host, win\_command, shell, raw, include\_role, command, win\_shell, set\_fact, include\_vars, meta, include\_tasks, import\_role, import\_tasks, script, group\_by, include  
> \*\*\*\*\*\*\*\*\*\*\*\*

Sounds like bad indentation.

Regards  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Racke
