Be a bit careful with that - that repo isn't going to update once it's checked out ( a bit like 'state=present' on a RPM resource). That might be what you want, of course :)
I found a good compromise of network activity vs. control was to use the "version=" parameter and point at a tag/commit. That's easy enough to set as a var and makes sure I'm getting the code I want, rather than HEAD (especially important if you have handlers attached to that task that you don't want firing every run). On 20 February 2015 at 10:36, nrser <[email protected]> wrote: > it looks like the parameter i was looking for was `update=no`, which seems > to prevent the remote request. something like: > > - name: clone {{ owner }}/{{ name }} from github > git: > repo: "[email protected]:{{ owner }}/{{ name }}" > dest: "{{ gh_root }}/{{ owner }}/{{ name }}" > update: "{{ update | default(no) }}" > > > On Wednesday, February 18, 2015 at 11:00:03 PM UTC+8, Brian Coca wrote: >> >> can you show the git task? >> >> >> >> >> -- >> Brian Coca > > -- > 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/6a4ed7dc-8186-403a-a4a7-c7be41929718%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- 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/CAK5eLPTOOR%3DJWvaBHVniP1CS5Mm4GGjw1tB8-sFnYhX2f_BTBQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
