# unable to send a file to target machine using git file

**URL:** <https://forum.ansible.com/t/unable-to-send-a-file-to-target-machine-using-git-file/29380>\
**Category:** Ansible Developer\
**Created:** [January 6, 2019, 3:11am UTC](https://forum.ansible.com/t/unable-to-send-a-file-to-target-machine-using-git-file/29380 "2019-01-06T03:11:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarnath\_Reddy](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@amarnath\_Reddy](https://forum.ansible.com/u/amarnath_Reddy)\
**Post date:** [January 6, 2019, 3:11am UTC](https://forum.ansible.com/t/unable-to-send-a-file-to-target-machine-using-git-file/29380/1 "2019-01-06T03:11:13Z")

</div>

While running below command in ansible i ma getting an error message.  
please help me on this

$ansible stagserver -m git -a "repo= [https://github.com/ansible/ansible-examples.git](https://github.com/ansible/ansible-examples.git) dest=/tmp/testfolder "

ERROR! this task ‘git’ has extra params, which is only allowed in the following modules: shell, win\_shell, include\_vars, add\_host, raw, include\_role, meta, set\_fact, include, import\_tasks, script, import\_role, include\_tasks, group\_by, command, win\_command

---

<div class="post-metadata">

**Author:** ![Lars\_Kellogg-Stedma1](https://avatars.discourse-cdn.com/v4/letter/l/ed655f/32.png) [@Lars\_Kellogg-Stedma1](https://forum.ansible.com/u/Lars_Kellogg-Stedma1)\
**Post date:** [January 7, 2019, 3:54pm UTC](https://forum.ansible.com/t/unable-to-send-a-file-to-target-machine-using-git-file/29380/2 "2019-01-07T15:54:06Z")

</div>

What version of Ansible are you running?
