On Jun 4, 2015 8:32 AM, <[email protected]> wrote:
>
> I have a private git repo and I want it cloned onto my remote servers in
the first execution of my playbook. Thereafter I want my repo to be pulled,
not cloned over and over again for any change i make in the repository.
What is the way to do that?
> Right now my repo is cloned on every run of my playbook. Not very
efficient.
>
Are you using the git module or an ad hoc shell command?  The git module
should do what you want with something like this:

- git:
      repo:  "ssh://[email protected]/mylogin/hello.git"
      dest: /home/mylogin/hello

If it's cloning every time, some more information about how you are able to
diagnose that it is cloning would be helpful.

-Toshio

-- 
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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAG9juEoZfScWSdnps%3D0Z-nzM88d4o8rREtQCZz6efvFDL%2BdB%3Dg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to