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

58 views
Skip to first unread message

Andrey Vinogradov

unread,
Jun 15, 2016, 11:04:26 AM6/15/16
to Ansible Project
Hi guys! I stuck on the cloning the git content without the folder itself.
I am using the task like:
git: repo=g...@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.
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?
Reply all
Reply to author
Forward
0 new messages