# How I can clone with ansible into specific directory without annoying git folder?

**URL:** <https://forum.ansible.com/t/how-i-can-clone-with-ansible-into-specific-directory-without-annoying-git-folder/21782>\
**Category:** Ansible Project\
**Created:** [June 15, 2016, 12:51pm UTC](https://forum.ansible.com/t/how-i-can-clone-with-ansible-into-specific-directory-without-annoying-git-folder/21782 "2016-06-15T12:51:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrey\_Vinogradov](https://avatars.discourse-cdn.com/v4/letter/a/b782af/32.png) [@Andrey\_Vinogradov](https://forum.ansible.com/u/Andrey_Vinogradov)\
**Post date:** [June 15, 2016, 12:51pm UTC](https://forum.ansible.com/t/how-i-can-clone-with-ansible-into-specific-directory-without-annoying-git-folder/21782/1 "2016-06-15T12:51:33Z")

</div>

Hi guys! I stuck on the cloning the git content without the folder itself.  
I am using the task like:  
git: [repo=git@bitbucket.org](mailto:repo=git@bitbucket.org):project/someRepo.git dest=/var/www accept\_hostkey=yes version=someVersion force=yes

and I am getting the someRepo folder in /var/www, but I need the someRepo content without the folder itself.  
I found the solution on [http://stackoverflow.com/questions/6224626/github-clone-contents-of-a-repo-without-folder-itself](http://stackoverflow.com/questions/6224626/github-clone-contents-of-a-repo-without-folder-itself)  
but it looks ugly and I can’t use it for both repo creation and repo update. Is there a possibility to solve my problem with ansible git module?
